1
0

20170623152212_create_session_activations.rb 377 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class CreateSessionActivations < ActiveRecord::Migration[5.1]
  3. def change
  4. create_table :session_activations do |t|
  5. t.integer :user_id, null: false
  6. t.string :session_id, null: false
  7. t.timestamps
  8. end
  9. add_index :session_activations, :user_id
  10. add_index :session_activations, :session_id, unique: true
  11. end
  12. end