Newer
Older
dmpopidor / db / migrate / 20180813114348_remove_slug_from_phases.rb
@Bodacious Bodacious on 13 Aug 2018 210 bytes Remove redundant database tables and columns
class RemoveSlugFromPhases < ActiveRecord::Migration
  def up
    if column_exists?(:phases, :slug)
      remove_column :phases, :slug
    end
  end

  def down
    add_column :phases, :slug, :string
  end
end