Newer
Older
dmpopidor / db / migrate / 20180813114234_remove_wayfless_entity_from_orgs.rb
@Bodacious Bodacious on 13 Aug 2018 245 bytes Remove redundant database tables and columns
class RemoveWayflessEntityFromOrgs < ActiveRecord::Migration
  def up
    if column_exists?(:orgs, :wayfless_entity)
      remove_column :orgs, :wayfless_entity
    end
  end

  def down
    add_column :orgs, :wayfless_entity, :string
  end
end