Sha256: 9fbd49e4a347b9b4f14afb331811b16aa1c6e36eadeefe1240010b3fcf03cd3c

Contents?: true

Size: 751 Bytes

Versions: 14

Compression:

Stored size: 751 Bytes

Contents

class Business < ActiveRecord::Base
  belongs_to :user
  belongs_to :owner, :polymorphic => true

  has_many :business_categories
  has_many :categories, :through => :business_categories
  
  structure do
    name             "The Kernel's favourite fried chickens", :was => :title
    website          "http://www.google.co.za/", :was => [:site, :homepage]
    address          ["11 Test Drive", "Gardens", "Cape Town" ,"South Africa"].join("\n")
    summary          :string
    description      :text
    landline         :string
    mobile           :string
    operating_days   0..6
    date_established :datetime
    next_sale        (Time.now + 10.days)
    verified         false
    location         :type => :string, :limit => 127
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
migrant-1.0.2 test/rails_app/app/models/business.rb
migrant-1.0.1 test/rails_app/app/models/business.rb
migrant-1.0.0 test/rails_app/app/models/business.rb
migrant-0.2.4 test/rails_app/app/models/business.rb
migrant-0.2.3 test/rails_app/app/models/business.rb
migrant-0.2.2 test/rails_app/app/models/business.rb
migrant-0.2.1 test/rails_app/app/models/business.rb
migrant-0.2.0 test/rails_app/app/models/business.rb
migrant-0.1.5 test/rails_app/app/models/business.rb
migrant-0.1.4 test/rails_app/app/models/business.rb
migrant-0.1.3 test/rails_app/app/models/business.rb
migrant-0.1.2 test/rails_app/app/models/business.rb
migrant-0.1.1 test/rails_app/app/models/business.rb
migrant-0.1.0 test/rails_app/app/models/business.rb