asciinema.org/db/migrate/20120304162005_create_user_tokens.rb

14 lines
289 B
Ruby
Raw Normal View History

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