No description or website provided.
Ruby JavaScript CoffeeScript
Latest commit 197704d Nov 26, 2012 @ryanb ryanb initial commit
Failed to load latest commit information.
checklist-before initial commit Nov 26, 2012
checklist-poly initial commit Nov 26, 2012
checklist-sti initial commit Nov 26, 2012 initial commit Nov 26, 2012

RailsCasts Episode #394: STI and Polymorphic Associations

Requires Ruby 1.9.2 or higher.

Commands used in this episode

rails g migration add_type_to_users type
rails g migration remove_guest_from_users guest:boolean
rake db:migrate
rails g migration remove_member_from_users username email password_digest type
rails g model MemberProfile username email password_digest
rails g model GuestProfile
rails g migration add_profile_to_users profile_id:integer profile_type