Sha256: 4977364e54bf42cd9cdcfc05c06ebb848326728e0c21a44a3418ebcba1d1614c

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 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

4 entries across 4 versions & 1 rubygems

Version Path
connection_manager-0.1.3 spec/helpers/models_spec_helper.rb
connection_manager-0.1.2 spec/helpers/models_spec_helper.rb
connection_manager-0.1.1 spec/helpers/models_spec_helper.rb
connection_manager-0.1.0 spec/helpers/models_spec_helper.rb