Skip to content

Commit

Permalink
Increase account_balance precision (closes #322)
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Dec 11, 2014
1 parent 12bf219 commit 062c300
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class IncreaseAccountBalancePrecision < ActiveRecord::Migration
def change
change_column :groups, :account_balance, :decimal, precision: 12, scale: 2
end
end
22 changes: 11 additions & 11 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,23 @@
add_index "group_orders", ["ordergroup_id"], name: "index_group_orders_on_ordergroup_id", using: :btree

create_table "groups", force: true do |t|
t.string "type", default: "", null: false
t.string "name", default: "", null: false
t.string "type", default: "", null: false
t.string "name", default: "", null: false
t.string "description"
t.decimal "account_balance", precision: 8, scale: 2, default: 0, null: false
t.datetime "created_on", null: false
t.boolean "role_admin", default: false, null: false
t.boolean "role_suppliers", default: false, null: false
t.boolean "role_article_meta", default: false, null: false
t.boolean "role_finance", default: false, null: false
t.boolean "role_orders", default: false, null: false
t.decimal "account_balance", precision: 12, scale: 2, default: 0, null: false
t.datetime "created_on", null: false
t.boolean "role_admin", default: false, null: false
t.boolean "role_suppliers", default: false, null: false
t.boolean "role_article_meta", default: false, null: false
t.boolean "role_finance", default: false, null: false
t.boolean "role_orders", default: false, null: false
t.datetime "deleted_at"
t.string "contact_person"
t.string "contact_phone"
t.string "contact_address"
t.text "stats"
t.integer "next_weekly_tasks_number", default: 8
t.boolean "ignore_apple_restriction", default: false
t.integer "next_weekly_tasks_number", default: 8
t.boolean "ignore_apple_restriction", default: false
end

add_index "groups", ["name"], name: "index_groups_on_name", unique: true, using: :btree
Expand Down

0 comments on commit 062c300

Please sign in to comment.