app/models/post.rb in blogmodule-0.0.1 vs app/models/post.rb in blogmodule-1.0.0
- old
+ new
@@ -1,6 +1,8 @@
class Post < ActiveRecord::Base
+ has_many :comments, :dependent => :destroy
+
has_and_belongs_to_many :categories
validates_uniqueness_of :title
def to_param