metamaps--metamaps/db/migrate/20160310200131_create_tokens.rb

12 lines
247 B
Ruby
Raw Normal View History

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