Newer
Older
dmpopidor / db / migrate / 20180813114525_remove_slug_from_plans.rb
@Bodacious Bodacious on 13 Aug 2018 206 bytes Remove redundant database tables and columns
class RemoveSlugFromPlans < ActiveRecord::Migration
  def up
    if column_exists?(:plans, :slug)
      remove_column :plans, :slug
    end
  end

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