Increase account_balance precision (closes foodcoops/foodsoft#322)
This commit is contained in:
parent
12bf2198e5
commit
8e4f3a4caf
2 changed files with 20 additions and 11 deletions
|
|
@ -0,0 +1,9 @@
|
|||
class IncreaseAccountBalancePrecision < ActiveRecord::Migration
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue