Sprankelprachtig aan/afmeldsysteem

20161212211342_create_sessions.rb 311B

1234567891011121314
  1. class CreateSessions < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :sessions do |t|
  4. t.string :ip
  5. t.datetime :expires
  6. t.string :remember_digest, unique: true
  7. t.references :user, foreign_key: true
  8. t.boolean :active, default: true
  9. t.timestamps
  10. end
  11. end
  12. end