about summary refs log tree commit diff
path: root/db/migrate/20170624134742_add_description_to_session_activations.rb
blob: 9dbb155641151562ceefe8e3eaa06e5fb131df24 (plain) (blame)
1
2
3
4
5
6
7
class AddDescriptionToSessionActivations < ActiveRecord::Migration[5.1]
  def change
    add_column :session_activations, :user_agent, :string, null: false, default: ''
    add_column :session_activations, :ip, :inet
    add_foreign_key :session_activations, :users, on_delete: :cascade
  end
end