asciinema.org/db/migrate/20120304162005_create_user_tokens.rb
2012-03-04 18:14:58 +01:00

14 lines
289 B
Ruby

class CreateUserTokens < ActiveRecord::Migration
def change
create_table :user_tokens do |t|
t.integer :user_id, :null => false
t.string :token, :null => false
t.timestamps
end
add_index :user_tokens, :user_id
add_index :user_tokens, :token
end
end