Remove data migrations

This commit is contained in:
Martin Lensment 2015-04-29 16:51:11 +03:00
parent 35b8ec6c91
commit 350cae621a
8 changed files with 0 additions and 33 deletions

View file

@ -1,10 +1,5 @@
class FixAccountBalancesToDecimal < ActiveRecord::Migration
def change
Account.all.each do |x|
x.balance = 0.0 unless x.balance
x.save
end
change_column :accounts, :balance, :decimal, null: false, default: 0
end
end