Base Legislation Annotations

This commit is contained in:
Amaia Castro
2017-01-03 18:03:29 +01:00
parent 39633dce67
commit ee9fa3db15
12 changed files with 178 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
class Legislation::Annotation < ActiveRecord::Base
serialize :ranges, Array
belongs_to :draft_version, class_name: 'Legislation::DraftVersion', foreign_key: 'legislation_draft_version_id'
belongs_to :user
end