From b753323197972bf6665eccf6df1681b18f931d70 Mon Sep 17 00:00:00 2001 From: Marek Kowalcze Date: Fri, 27 Sep 2019 00:19:19 +0200 Subject: [PATCH] annotate models --- app/models/company.rb | 1 + app/models/cp/assessment.rb | 1 + app/models/litigation_side.rb | 1 + app/models/mq/assessment.rb | 1 + app/models/target.rb | 1 + app/models/target_scope.rb | 9 +++++---- spec/factories/companies.rb | 1 + spec/factories/litigation_sides.rb | 1 + spec/factories/mq_assessments.rb | 1 + spec/factories/targets.rb | 1 + spec/models/company_spec.rb | 1 + spec/models/cp/assessment_spec.rb | 1 + spec/models/litigation_side_spec.rb | 1 + spec/models/mq/assessment_spec.rb | 1 + spec/models/target_scope_spec.rb | 9 +++++---- spec/models/target_spec.rb | 1 + 16 files changed, 24 insertions(+), 8 deletions(-) diff --git a/app/models/company.rb b/app/models/company.rb index 3c5ae8cb8..49824527d 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -14,6 +14,7 @@ # created_at :datetime not null # updated_at :datetime not null # visibility_status :string default("draft") +# discarded_at :datetime # class Company < ApplicationRecord diff --git a/app/models/cp/assessment.rb b/app/models/cp/assessment.rb index 4ce07df0f..afa586c34 100644 --- a/app/models/cp/assessment.rb +++ b/app/models/cp/assessment.rb @@ -10,6 +10,7 @@ # assumptions :text # created_at :datetime not null # updated_at :datetime not null +# discarded_at :datetime # module CP diff --git a/app/models/litigation_side.rb b/app/models/litigation_side.rb index 6c21fee8f..900041132 100644 --- a/app/models/litigation_side.rb +++ b/app/models/litigation_side.rb @@ -11,6 +11,7 @@ # updated_at :datetime not null # connected_entity_type :string # connected_entity_id :bigint +# discarded_at :datetime # class LitigationSide < ApplicationRecord diff --git a/app/models/mq/assessment.rb b/app/models/mq/assessment.rb index 25ce46db1..c7aa4211f 100644 --- a/app/models/mq/assessment.rb +++ b/app/models/mq/assessment.rb @@ -11,6 +11,7 @@ # questions :jsonb # created_at :datetime not null # updated_at :datetime not null +# discarded_at :datetime # module MQ diff --git a/app/models/target.rb b/app/models/target.rb index 766fd40d3..6518d8fd4 100644 --- a/app/models/target.rb +++ b/app/models/target.rb @@ -17,6 +17,7 @@ # visibility_status :string default("draft") # created_by_id :bigint # updated_by_id :bigint +# discarded_at :datetime # class Target < ApplicationRecord diff --git a/app/models/target_scope.rb b/app/models/target_scope.rb index 44633e9e6..d98579cbc 100644 --- a/app/models/target_scope.rb +++ b/app/models/target_scope.rb @@ -2,10 +2,11 @@ # # Table name: target_scopes # -# id :bigint not null, primary key -# name :string not null -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# name :string not null +# created_at :datetime not null +# updated_at :datetime not null +# discarded_at :datetime # class TargetScope < ApplicationRecord diff --git a/spec/factories/companies.rb b/spec/factories/companies.rb index 358e7a620..199328e6d 100644 --- a/spec/factories/companies.rb +++ b/spec/factories/companies.rb @@ -14,6 +14,7 @@ # created_at :datetime not null # updated_at :datetime not null # visibility_status :string default("draft") +# discarded_at :datetime # FactoryBot.define do diff --git a/spec/factories/litigation_sides.rb b/spec/factories/litigation_sides.rb index bf1f5fc25..0e7689d3d 100644 --- a/spec/factories/litigation_sides.rb +++ b/spec/factories/litigation_sides.rb @@ -11,6 +11,7 @@ # updated_at :datetime not null # connected_entity_type :string # connected_entity_id :bigint +# discarded_at :datetime # FactoryBot.define do diff --git a/spec/factories/mq_assessments.rb b/spec/factories/mq_assessments.rb index 2d8ab920c..fd93a0294 100644 --- a/spec/factories/mq_assessments.rb +++ b/spec/factories/mq_assessments.rb @@ -11,6 +11,7 @@ # questions :jsonb # created_at :datetime not null # updated_at :datetime not null +# discarded_at :datetime # FactoryBot.define do diff --git a/spec/factories/targets.rb b/spec/factories/targets.rb index 44348ebe9..482deffd6 100644 --- a/spec/factories/targets.rb +++ b/spec/factories/targets.rb @@ -17,6 +17,7 @@ # visibility_status :string default("draft") # created_by_id :bigint # updated_by_id :bigint +# discarded_at :datetime # FactoryBot.define do diff --git a/spec/models/company_spec.rb b/spec/models/company_spec.rb index 898d42f8a..1735785c5 100644 --- a/spec/models/company_spec.rb +++ b/spec/models/company_spec.rb @@ -14,6 +14,7 @@ # created_at :datetime not null # updated_at :datetime not null # visibility_status :string default("draft") +# discarded_at :datetime # require 'rails_helper' diff --git a/spec/models/cp/assessment_spec.rb b/spec/models/cp/assessment_spec.rb index 7a529329e..6d2796cd0 100644 --- a/spec/models/cp/assessment_spec.rb +++ b/spec/models/cp/assessment_spec.rb @@ -10,6 +10,7 @@ # assumptions :text # created_at :datetime not null # updated_at :datetime not null +# discarded_at :datetime # require 'rails_helper' diff --git a/spec/models/litigation_side_spec.rb b/spec/models/litigation_side_spec.rb index a26e3f674..5fc711281 100644 --- a/spec/models/litigation_side_spec.rb +++ b/spec/models/litigation_side_spec.rb @@ -11,6 +11,7 @@ # updated_at :datetime not null # connected_entity_type :string # connected_entity_id :bigint +# discarded_at :datetime # require 'rails_helper' diff --git a/spec/models/mq/assessment_spec.rb b/spec/models/mq/assessment_spec.rb index 24042edb0..da3a0bedd 100644 --- a/spec/models/mq/assessment_spec.rb +++ b/spec/models/mq/assessment_spec.rb @@ -11,6 +11,7 @@ # questions :jsonb # created_at :datetime not null # updated_at :datetime not null +# discarded_at :datetime # require 'rails_helper' diff --git a/spec/models/target_scope_spec.rb b/spec/models/target_scope_spec.rb index fbc164113..abfaf507d 100644 --- a/spec/models/target_scope_spec.rb +++ b/spec/models/target_scope_spec.rb @@ -2,10 +2,11 @@ # # Table name: target_scopes # -# id :bigint not null, primary key -# name :string not null -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# name :string not null +# created_at :datetime not null +# updated_at :datetime not null +# discarded_at :datetime # require 'rails_helper' diff --git a/spec/models/target_spec.rb b/spec/models/target_spec.rb index 86f11ac5b..2ff6bf74f 100644 --- a/spec/models/target_spec.rb +++ b/spec/models/target_spec.rb @@ -17,6 +17,7 @@ # visibility_status :string default("draft") # created_by_id :bigint # updated_by_id :bigint +# discarded_at :datetime # require 'rails_helper'