1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/db/migrate/20190528140012_remove_user_id_columns.rb

10 lines
427 B
Ruby
Raw Normal View History

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
end
end