Legislation annotations/comments page

This commit is contained in:
Amaia Castro
2017-01-05 22:59:35 +01:00
parent 068c2c9f3d
commit b8f034d896
21 changed files with 743 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
class AddCommentsCountToLegislationAnnotation < ActiveRecord::Migration
def change
add_column :legislation_annotations, :comments_count, :integer, default: 0
end
end

View File

@@ -0,0 +1,5 @@
class RenameUserToAuthorInLegislationAnnotations < ActiveRecord::Migration
def change
rename_column :legislation_annotations, :user_id, :author_id
end
end