Sha256: 860dc0903b7ad0c00a79028a16e218de0bb1b54a8e36de6aaa0f64c33697c4d3

Contents?: true

Size: 453 Bytes

Versions: 5

Compression:

Stored size: 453 Bytes

Contents

class Basket < ActiveRecord::Base
  has_many :fruit_baskets
  has_many :fruit, :through => :fruit_baskets
  #replicated
end

class Fruit < ActiveRecord::Base
  belongs_to :region
  has_many :fruit_baskets
  has_many :baskets, :through => :fruit_baskets
  #replicated
end

#Join table
class FruitBasket < ActiveRecord::Base
  belongs_to :fruit
  belongs_to :basket
  #replicated
end

class Region < ActiveRecord::Base
  has_one :fruit
  #replicated
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
connection_manager-0.2.6 spec/helpers/models_spec_helper.rb
connection_manager-0.2.5 spec/helpers/models_spec_helper.rb
connection_manager-0.2.4 spec/helpers/models_spec_helper.rb
connection_manager-0.2.3 spec/helpers/models_spec_helper.rb
connection_manager-0.2.2 spec/helpers/models_spec_helper.rb