Skip to content

Commit 12e8281

Browse files
authored
Fix questions table annotations after PR #4912 (#4928)
1 parent b1601b5 commit 12e8281

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

app/models/question.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
#
33
# Table name: questions
44
#
5-
# id :bigint not null, primary key
6-
# for_banks :boolean default(TRUE), not null
7-
# for_partners :boolean default(TRUE), not null
8-
# title :string not null
9-
# created_at :datetime not null
10-
# updated_at :datetime not null
5+
# id :bigint not null, primary key
6+
# title :string not null
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
119
#
1210
class Question < ApplicationRecord
1311
has_paper_trail

spec/factories/questions.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
#
33
# Table name: questions
44
#
5-
# id :bigint not null, primary key
6-
# for_banks :boolean default(TRUE), not null
7-
# for_partners :boolean default(TRUE), not null
8-
# title :string not null
9-
# created_at :datetime not null
10-
# updated_at :datetime not null
5+
# id :bigint not null, primary key
6+
# title :string not null
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
119
#
1210
FactoryBot.define do
1311
factory :question do

spec/models/question_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
#
33
# Table name: questions
44
#
5-
# id :bigint not null, primary key
6-
# for_banks :boolean default(TRUE), not null
7-
# for_partners :boolean default(TRUE), not null
8-
# title :string not null
9-
# created_at :datetime not null
10-
# updated_at :datetime not null
5+
# id :bigint not null, primary key
6+
# title :string not null
7+
# created_at :datetime not null
8+
# updated_at :datetime not null
119
#
1210

1311
RSpec.describe Question, type: :model do

0 commit comments

Comments
 (0)