12 lines
247 B
Ruby
12 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
|