possible migration fix for rails 4

This commit is contained in:
jomo
2014-04-20 03:28:09 +02:00
parent cbafa3c46a
commit db9771ebd0

View File

@@ -1,10 +1,10 @@
class CreateRegisterTokens < ActiveRecord::Migration
def change
create_table :register_tokens, primary_key: :uuid do |t|
create_table :register_tokens, id: :false do |t|
t.string :uuid, limit: 32, unique: true, primary: true, null: false
t.string :token, limit: 6, null: false
t.string :email, unique: true, null: false
end
change_column :register_tokens, :uuid, :string
add_index :register_tokens, :uuid, :string
end
end