I have the following
class Item < ActiveRecord::Base
end
class Talk < Item
end
with the migration
class CreateItems < ActiveRecord::Migration
def self.up
create_table :items do |t|
t.string :type
t.string :name
t.text :description
t.time :start_time
t.time :duration
t.timestamps
end
end
...
end
By default the description property will be available on the Item and Talk classes. Is there a way to restrict the property so that is only available to the Talk class?