Skip to content

Instantly share code, notes, and snippets.

@arbarlow
Created May 25, 2011 16:06
Show Gist options
  • Save arbarlow/991253 to your computer and use it in GitHub Desktop.
Save arbarlow/991253 to your computer and use it in GitHub Desktop.
class Release < ActiveRecord::Base
has_many :songs, :dependent => :destroy
end
# Any song belonging to the Release deleted, will also be deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment