tuxwebror/db/migrate/20181208231456_create_sessions.rb
2018-12-21 19:06:39 +01:00

10 lines
219 B
Ruby

class CreateSessions < ActiveRecord::Migration[5.2]
def change
create_table :sessions do |t|
t.string :user_id
t.boolean :is_admin
t.string :token, limit: 25
t.timestamps
end
end
end