The code powering m.abunchtell.com https://m.abunchtell.com
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

9 linhas
369 B

  1. class ReAddOwnerToApplication < ActiveRecord::Migration[5.0]
  2. def change
  3. add_column :oauth_applications, :owner_id, :integer, null: true
  4. add_column :oauth_applications, :owner_type, :string, null: true
  5. add_index :oauth_applications, [:owner_id, :owner_type]
  6. add_foreign_key :oauth_applications, :users, column: :owner_id, on_delete: :cascade
  7. end
  8. end