Project

General

Profile

Download (300 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreateTokens < ActiveRecord::Migration[4.2]
def up
create_table :tokens do |t|
t.string :value, :limit => 255
t.datetime :expires
t.integer :host_id
end
add_index :tokens, :value
add_index :tokens, :host_id
end

def down
drop_table :tokens
end
end
(98-98/386)