mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
11 lines
501 B
Ruby
11 lines
501 B
Ruby
class RemoveUserIdColumns < ActiveRecord::Migration
|
|
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
|
|
remove_reference :invoices, :operator, index: true, foreign_key: true
|
|
end
|
|
end
|