Sha256: efa1ab3ad80b09c09d90c7639b3dedf8ff6cfadd09e8bd535cd456d9be6a6c88

Contents?: true

Size: 879 Bytes

Versions: 3

Compression:

Stored size: 879 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
    awards           ["Best business 2007", "Tastiest Chicken 2008"]
    managers         :serialized
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
migrant-1.3.2 test/rails_app/app/models/business.rb
migrant-1.3.1 test/rails_app/app/models/business.rb
migrant-1.3.0 test/rails_app/app/models/business.rb