test/dummy/app/models/tweet.rb in dread-0.0.5 vs test/dummy/app/models/tweet.rb in dread-0.0.6
- old
+ new
@@ -1,4 +1,5 @@
class Tweet < ActiveRecord::Base
belongs_to :user
has_many :comments, dependent: :destroy
+ has_many :pictures, dependent: :destroy, as: :imageable
end