Skip to content

Commit ddc7db5

Browse files
committed
Fix lint on migration file
1 parent e5bd856 commit ddc7db5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

db/migrate/20250910124806_add_requires_private_email_for_referee_to_application_form.rb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ class AddRequiresPrivateEmailForRefereeToApplicationForm < ActiveRecord::Migrati
44
8.0
55
]
66
def change
7-
add_column :application_forms,
8-
:requires_private_email_for_referee,
7+
change_table :application_forms, bulk: true do |t|
8+
t.column :requires_private_email_for_referee,
99
:boolean,
10-
null: false,
11-
default: false
12-
13-
add_column :application_forms,
14-
:started_with_private_email_for_referee,
10+
default: false,
11+
null: false
12+
t.column :started_with_private_email_for_referee,
1513
:boolean,
16-
null: false,
17-
default: false
14+
default: false,
15+
null: false
16+
end
1817
end
1918
end

0 commit comments

Comments
 (0)