2020-03-24 16:45:27 +01:00
|
|
|
# frozen_string_literal:true
|
|
|
|
|
|
|
|
class RemoveUserIdColumns < ActiveRecord::Migration[4.2]
|
2019-06-04 16:50:23 +02:00
|
|
|
def change
|
|
|
|
remove_column :invoices, :user_id, :integer
|
|
|
|
remove_reference :organizations, :profile, index: true, foreign_key: true
|
|
|
|
remove_reference :wallets, :user, index: true, foreign_key: true
|
|
|
|
remove_reference :wallet_transactions, :user, index: true, foreign_key: true
|
|
|
|
remove_reference :history_values, :user, index: true, foreign_key: true
|
2020-03-24 16:45:27 +01:00
|
|
|
remove_reference :invoices, :operator, index: true
|
2019-06-04 16:50:23 +02:00
|
|
|
end
|
|
|
|
end
|