Newer
Older
dmpopidor / db / migrate / 20180813114216_remove_parent_id_from_orgs.rb
@Bodacious Bodacious on 13 Aug 2018 222 bytes Remove redundant database tables and columns
class RemoveParentIdFromOrgs < ActiveRecord::Migration
  def up
    if column_exists?(:orgs, :parent_id)
      remove_column :orgs, :parent_id
    end
  end

  def down
    add_column :orgs, :parent_id, :integer
  end
end