20160314164231_add_owner_to_application.rb 310 B

123456789
  1. # frozen_string_literal: true
  2. class AddOwnerToApplication < ActiveRecord::Migration[4.2]
  3. def change
  4. add_column :oauth_applications, :owner_id, :integer, null: true
  5. add_column :oauth_applications, :owner_type, :string, null: true
  6. add_index :oauth_applications, [:owner_id, :owner_type]
  7. end
  8. end