Skip to content

Commit

Permalink
fixed precision & scale
Browse files Browse the repository at this point in the history
  • Loading branch information
yehezkielbs committed Jan 10, 2012
1 parent bc41edd commit 8b35c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.up
t.text :description
t.boolean :active
t.date :join_date
t.decimal :debt, :precision => 2, :scale => 11
t.decimal :debt, :precision => 11, :scale => 2
t.float :rating
t.references :customer_group

Expand Down
2 changes: 1 addition & 1 deletion test/test_app/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
t.text "description"
t.boolean "active"
t.date "join_date"
t.decimal "debt", :precision => 2, :scale => 11
t.decimal "debt", :precision => 11, :scale => 2
t.float "rating"
t.integer "customer_group_id"
t.datetime "created_at"
Expand Down

0 comments on commit 8b35c37

Please sign in to comment.