Sha256: 009a1c3f10da2aeb051fd6fa25343a6873ec04a47a84f44d272987d7746f943d

Contents?: true

Size: 453 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
connection_manager-0.2.1 spec/helpers/models_spec_helper.rb
connection_manager-0.2.0 spec/helpers/models_spec_helper.rb
connection_manager-0.1.4 spec/helpers/models_spec_helper.rb