metamaps--metamaps/db/migrate/20160310200131_create_tokens.rb
2016-03-11 17:16:04 +11:00

11 lines
247 B
Ruby

class CreateTokens < ActiveRecord::Migration
def change
create_table :tokens do |t|
t.string :token
t.string :description
t.references :user, index: true, foreign_key: true
t.timestamps null: false
end
end
end