foodsoft/db/migrate/20141211210719_increase_account_balance_precision.rb
2020-09-05 14:40:11 +02:00

9 lines
263 B
Ruby

class IncreaseAccountBalancePrecision < ActiveRecord::Migration[4.2]
def up
change_column :groups, :account_balance, :decimal, precision: 12, scale: 2
end
def down
change_column :groups, :account_balance, :decimal, precision: 8, scale: 2
end
end