Sha256: 2d3efd27e86be41f3d9648fdc23788c14aa69a9ebda07f1ded9498764a2ad0af

Contents?: true

Size: 898 Bytes

Versions: 2

Compression:

Stored size: 898 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, :default => false
    location         :type => :string, :limit => 127
    awards           ["Best business 2007", "Tastiest Chicken 2008"]
    managers         :serialized
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
migrant-1.4.1 test/rails_app/app/models/business.rb
migrant-1.4.0 test/rails_app/app/models/business.rb