From db9771ebd00045a8c70fcc243cba35f70fd718f0 Mon Sep 17 00:00:00 2001 From: jomo Date: Sun, 20 Apr 2014 03:28:09 +0200 Subject: possible migration fix for rails 4 --- db/migrate/09_create_register_tokens.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db') 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 -- cgit v1.2.3