Created
April 12, 2012 20:06
-
-
Save johndavid400/2370622 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChangeAmountTypeOnAdjustments < ActiveRecord::Migration | |
def self.up | |
change_column :adjustments, :amount, :decimal, :precision => 8, :scale => 2, :default => 0.0, :null => false | |
end | |
def self.down | |
change_column :adjustments, :amount, :decimal | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment