Railsのドキュメントには、次の例があります。
class Physician < ActiveRecord::Base
has_many :appointments
has_many :patients, :through => :appointments
end
私はちょうど興味があります: コマンドラインを使用してこれを生成することは可能rails generate model
ですか?
Railsのドキュメントには、次の例があります。
class Physician < ActiveRecord::Base
has_many :appointments
has_many :patients, :through => :appointments
end
私はちょうど興味があります: コマンドラインを使用してこれを生成することは可能rails generate model
ですか?