20170624134742_add_description_to_session_activations.rb 350 B

1234567891011
  1. # frozen_string_literal: true
  2. class AddDescriptionToSessionActivations < ActiveRecord::Migration[5.1]
  3. def change
  4. change_table(:session_activations, bulk: true) do |t|
  5. t.column :user_agent, :string, null: false, default: ''
  6. t.column :ip, :inet
  7. end
  8. add_foreign_key :session_activations, :users, on_delete: :cascade
  9. end
  10. end