Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
505 B
Raw Blame
class DropWasMergedFromTransactions < ActiveRecord::Migration[7.2]
  def up
    # Column introduced in PR #267 but no longer needed; safe to remove
    if column_exists?(:transactions, :was_merged)
      remove_column :transactions, :was_merged
    end
  end

  def down
    # Recreate the column for rollback compatibility with original constraints
    unless column_exists?(:transactions, :was_merged)
      add_column :transactions, :was_merged, :boolean, null: false, default: false
    end
  end
end