summaryrefslogtreecommitdiff
path: root/db/migrate/09_create_register_tokens.rb
blob: ad317d78a2375ceb8a4b4b8597a2f880df78c444 (plain)
1
2
3
4
5
6
7
8
9
10
class CreateRegisterTokens < ActiveRecord::Migration
  def change
     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
     add_index :register_tokens, :uuid, :string
  end
end