Im setting up a very basic rails app and have a question about the needed 
migrations & associations.

Basically, my app is an occasion reminder service that emails users when 
occasions that they select or input are coming up.

Occasions will be selected from a checkbox type list or alternatively 
manually input by the user (name and date of the occasion).

Users can have_many occassions. 

How would i set this up in my models? So far i have:

class Reminder < ActiveRecord::Base
  attr_accessible :date, :name
  belongs_to :user
end

class User < ActiveRecord::Base
  attr_accessible :address, :birthday, :city, :email, :gender, :interests, 
:name, :postal_code
  has_many :reminders
end


Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/lDjtqP256lQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to