Skip to content

Commit

Permalink
Fix questions table annotations after PR #4912 (#4928)
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest authored Jan 17, 2025
1 parent b1601b5 commit 12e8281
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
10 changes: 4 additions & 6 deletions app/models/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions spec/factories/questions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions spec/models/question_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12e8281

Please sign in to comment.