diff options
author | jomo <github@jomo.tv> | 2014-04-20 03:28:09 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-04-20 03:28:09 +0200 |
commit | db9771ebd00045a8c70fcc243cba35f70fd718f0 (patch) | |
tree | 96515ba08f7a71937c497715a875874c78403b0f /db | |
parent | cbafa3c46a4406f6d6bf13e2871c16ae4c264d75 (diff) |
possible migration fix for rails 4
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/09_create_register_tokens.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/09_create_register_tokens.rb b/db/migrate/09_create_register_tokens.rb index d103ee6..ad317d7 100644 --- a/db/migrate/09_create_register_tokens.rb +++ b/db/migrate/09_create_register_tokens.rb @@ -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
\ No newline at end of file |