File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed
Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 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#
1210class Question < ApplicationRecord
1311 has_paper_trail
Original file line number Diff line number Diff line change 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#
1210FactoryBot . define do
1311 factory :question do
Original file line number Diff line number Diff line change 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
1311RSpec . describe Question , type : :model do
You can’t perform that action at this time.
0 commit comments