Sha256: 2635c55a17f489c0dae0cf7968e9415e1f4a8ebb4090bc5565b91cb6f32df39b

Contents?: true

Size: 777 Bytes

Versions: 9

Compression:

Stored size: 777 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      "Founded in 1898", :as => :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

9 entries across 9 versions & 1 rubygems

Version Path
migrant-1.2.8 test/rails_app/app/models/business.rb
migrant-1.2.7 test/rails_app/app/models/business.rb
migrant-1.2.5 test/rails_app/app/models/business.rb
migrant-1.2.2 test/rails_app/app/models/business.rb
migrant-1.2.1 test/rails_app/app/models/business.rb
migrant-1.2.0 test/rails_app/app/models/business.rb
migrant-1.1.2 test/rails_app/app/models/business.rb
migrant-1.1.1 test/rails_app/app/models/business.rb
migrant-1.1.0 test/rails_app/app/models/business.rb