20170624134742_add_description_to_session_activations.rb 297 B

1234567
  1. class AddDescriptionToSessionActivations < ActiveRecord::Migration[5.1]
  2. def change
  3. add_column :session_activations, :user_agent, :string, null: false, default: ''
  4. add_column :session_activations, :ip, :inet
  5. add_foreign_key :session_activations, :users, on_delete: :cascade
  6. end
  7. end