私は次のものを持っています
class Item < ActiveRecord::Base
end
class Talk < Item
end
移行に伴い
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
デフォルトでは、description プロパティは Item クラスと Talk クラスで使用できます。Talk クラスでのみ使用できるようにプロパティを制限する方法はありますか?