In my application i have the following models:
class Bus < ApplicationRecord
belongs_to :user
has_many :seats, dependent: :destroy
end
class Seat < ApplicationRecord
belongs_to :bus
end
Is there a way to have a specific number of "Seats" created each time a user adds a bus? I don't want users to be creating seats for the buses.