aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/blog_comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/blog_comment.rb')
-rw-r--r--app/models/blog_comment.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb
new file mode 100644
index 0000000..4398475
--- /dev/null
+++ b/app/models/blog_comment.rb
@@ -0,0 +1,8 @@
+class BlogPost < ActiveRecord::Base
+
+ acts_as_indexed :fields => [:name, :email, :body]
+
+ validates_presence_of :title
+ validates_uniqueness_of :title
+
+end