From 12e828164fe391ab0a2881cc1ffe93d6d5375db4 Mon Sep 17 00:00:00 2001 From: Cory Streiff <90390502+coalest@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:09:45 +0100 Subject: [PATCH] Fix questions table annotations after PR #4912 (#4928) --- app/models/question.rb | 10 ++++------ spec/factories/questions.rb | 10 ++++------ spec/models/question_spec.rb | 10 ++++------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/app/models/question.rb b/app/models/question.rb index 7fec5625ee..0bb02d9265 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -2,12 +2,10 @@ # # Table name: questions # -# id :bigint not null, primary key -# for_banks :boolean default(TRUE), not null -# for_partners :boolean default(TRUE), not null -# title :string not null -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# title :string not null +# created_at :datetime not null +# updated_at :datetime not null # class Question < ApplicationRecord has_paper_trail diff --git a/spec/factories/questions.rb b/spec/factories/questions.rb index 8995126d54..f58da23de8 100644 --- a/spec/factories/questions.rb +++ b/spec/factories/questions.rb @@ -2,12 +2,10 @@ # # Table name: questions # -# id :bigint not null, primary key -# for_banks :boolean default(TRUE), not null -# for_partners :boolean default(TRUE), not null -# title :string not null -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# title :string not null +# created_at :datetime not null +# updated_at :datetime not null # FactoryBot.define do factory :question do diff --git a/spec/models/question_spec.rb b/spec/models/question_spec.rb index 93055b9438..4878182c06 100644 --- a/spec/models/question_spec.rb +++ b/spec/models/question_spec.rb @@ -2,12 +2,10 @@ # # Table name: questions # -# id :bigint not null, primary key -# for_banks :boolean default(TRUE), not null -# for_partners :boolean default(TRUE), not null -# title :string not null -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# title :string not null +# created_at :datetime not null +# updated_at :datetime not null # RSpec.describe Question, type: :model do