Commit 7e9265f6 by Rocky Duan

add instructor endorsement field

parent e7e0fd8c
class AddEndorsedToComments < ActiveRecord::Migration
def self.up
add_column :comments, :endorsed, :boolean, :default => false
end
def self.down
remove_column :comments, :endorsed
end
end
......@@ -4,7 +4,7 @@ require 'thumbs_up'
class Comment < ActiveRecord::Base
attr_accessible :body, :title, :user_id, :course_id, :comment_thread_id
attr_accessible :body, :title, :user_id, :course_id, :endorsed, :comment_thread_id
has_ancestry :cache_depth => true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment