]> git.openstreetmap.org Git - rails.git/blob - db/migrate/042_add_foreign_keys_to_oauth_tables.rb
Merge remote-tracking branch 'upstream/pull/4352'
[rails.git] / db / migrate / 042_add_foreign_keys_to_oauth_tables.rb
1 class AddForeignKeysToOauthTables < ActiveRecord::Migration[4.2]
2   def change
3     add_foreign_key :oauth_tokens, :users, :name => "oauth_tokens_user_id_fkey"
4     add_foreign_key :oauth_tokens, :client_applications, :name => "oauth_tokens_client_application_id_fkey"
5     add_foreign_key :client_applications, :users, :name => "client_applications_user_id_fkey"
6   end
7 end