aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides.rb
diff options
context:
space:
mode:
authorRafael Sales <rafaelcds@gmail.com>2015-10-13 09:06:50 -0300
committerRafael Sales <rafaelcds@gmail.com>2015-10-22 04:23:56 -0300
commit4f21d42faaf12955fa0116306966d4ef09e62462 (patch)
tree99ab3fe330485d4f4dc01b7c7725796504e046c0 /guides/rails_guides.rb
parentc2d33c4abf01ec25b2d1528a7dae923aef5a30af (diff)
downloadrails-4f21d42faaf12955fa0116306966d4ef09e62462.tar.gz
rails-4f21d42faaf12955fa0116306966d4ef09e62462.tar.bz2
rails-4f21d42faaf12955fa0116306966d4ef09e62462.zip
Refactor Calculations#execute_grouped_calculation and clean AR test case
* When tried to use `Company#accounts` test/models/company.rb I got: ``` ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: accounts.company_id: SELECT COUNT(*) AS count_all, "companies"."firm_id" AS companies_firm_id FROM "companies" INNER JOIN "accounts" ON "accounts"."company_id" = "companies"."id" GROUP BY "companies"."firm_id" ``` * The refactor on Calculations class was just to simplify the code
Diffstat (limited to 'guides/rails_guides.rb')
0 files changed, 0 insertions, 0 deletions