This commit is contained in:
jomo
2014-04-20 03:34:29 +02:00
parent 233a3049dc
commit c0a57f1554

View File

@@ -1,10 +1,9 @@
class CreateRegisterTokens < ActiveRecord::Migration
def change
create_table :register_tokens, id: false do |t|
create_table :register_tokens 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
add_index :register_tokens, :uuid, :string
end
end