]> git.openstreetmap.org Git - rails.git/blob - db/migrate/042_add_foreign_keys_to_oauth_tables.rb
Remove error class when right-click-selecting destination
[rails.git] / db / migrate / 042_add_foreign_keys_to_oauth_tables.rb
1 require "migrate"
2
3 class AddForeignKeysToOauthTables < ActiveRecord::Migration[5.0]
4   def change
5     add_foreign_key :oauth_tokens, :users, :name => "oauth_tokens_user_id_fkey"
6     add_foreign_key :oauth_tokens, :client_applications, :name => "oauth_tokens_client_application_id_fkey"
7     add_foreign_key :client_applications, :users, :name => "client_applications_user_id_fkey"
8   end
9 end