This project is archived and is in readonly mode.
A set of includes in active records break when I add an order
-
pupeno@pupeno.com
This is the relevant context:
class User < ActiveRecord::Base has_and_belongs_to_many :clocks has_many :runs, :through => :clocks has_many :user_runs #... end class Clock < ActiveRecord::Base has_and_belongs_to_many :users has_many :runs # ... end class Run < ActiveRecord::Base belongs_to :clock has_many :user_runs # ... end class UserRun < ActiveRecord::Base belongs_to :run belongs_to :user # ... endand
create_table "clocks", :force => true do |t| end create_table "clocks_users", :id => false, :force => true do |t| t.integer "clock_id", :null => false t.integer "user_id", :null => false end create_table "runs", :force => true do |t| t.integer "clock_id" end create_table "user_runs", :force => true do |t| t.integer "run_id" t.integer "user_id" end create_table "users", :force => true do |t| endThanks.
-
Jon Leighton
- State changed from new to stale
- Importance changed from to Low
Hi there,
Thanks for the bug report.
I've tried out your code against Rails 3.0.3 and cannot reproduce the problem.
I'm marking as stale, let me know if the problem does still exist and I can re-open.
Jon