rails g model reward campaign:references title amount:integer
rake db:migrate
- in campaign model, set up the association and nested attributes
- the reject_if: :all_blank will ignore this input(not throwing any validation error) if user didn't put in any value for this reward object
has_many :rewards, dependent: :destroy
# this enables us to create associated rewards models at the same time we're