Skip to content

Commit

Permalink
Backed out redundant Account.starting_balance code since Tom already …
Browse files Browse the repository at this point in the history
…added Account.offset; I just deleted the migration since it was the last one.
  • Loading branch information
jgaldrich committed Sep 13, 2012
1 parent c734305 commit 8ddae84
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/models/account.rb
Expand Up @@ -15,7 +15,7 @@ class Account < ActiveRecord::Base
belongs_to :person
belongs_to :group

attr_accessible :credit_limit, :offset, :starting_balance, :as => :admin
attr_accessible :credit_limit, :offset, :as => :admin
attr_accessible :credit_limit, :offset

before_update :check_credit_limit
Expand Down
2 changes: 0 additions & 2 deletions config/initializers/rails_admin.rb
Expand Up @@ -44,7 +44,6 @@ class SendBroadcastEmail < RailsAdmin::Config::Actions::Base
end
field :balance
field :credit_limit
field :starting_balance
field :updated_at do
label "Last Transaction"
end
Expand All @@ -54,7 +53,6 @@ class SendBroadcastEmail < RailsAdmin::Config::Actions::Base
field :person
field :balance
field :credit_limit
field :starting_balance
field :updated_at do
label "Last Transaction"
end
Expand Down
9 changes: 0 additions & 9 deletions db/migrate/20120913155341_add_starting_balance_to_account.rb

This file was deleted.

9 changes: 4 additions & 5 deletions db/schema.rb
Expand Up @@ -11,18 +11,17 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20120913155341) do
ActiveRecord::Schema.define(:version => 20120911165701) do

create_table "accounts", :force => true do |t|
t.string "name"
t.decimal "balance", :precision => 8, :scale => 2, :default => 0.0
t.decimal "balance", :precision => 8, :scale => 2, :default => 0.0
t.integer "person_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "group_id"
t.decimal "credit_limit", :precision => 8, :scale => 2
t.decimal "offset", :precision => 8, :scale => 2, :default => 0.0
t.decimal "starting_balance", :precision => 8, :scale => 2, :default => 0.0
t.decimal "credit_limit", :precision => 8, :scale => 2
t.decimal "offset", :precision => 8, :scale => 2, :default => 0.0
end

create_table "activities", :force => true do |t|
Expand Down

0 comments on commit 8ddae84

Please sign in to comment.