-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7754 from fjordllc/feature/corporate_training_for…
…m_create 企業研修の申し込みフォームを作成(再修正)
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
db/migrate/20240501051341_add_not_null_to_corporate_trainings.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class AddNotNullToCorporateTrainings < ActiveRecord::Migration[6.1] | ||
def change | ||
change_column_null :corporate_trainings, :company_name, false | ||
change_column_null :corporate_trainings, :name, false | ||
change_column_null :corporate_trainings, :email, false | ||
change_column_null :corporate_trainings, :meeting_date1, false | ||
change_column_null :corporate_trainings, :meeting_date2, false | ||
change_column_null :corporate_trainings, :meeting_date3, false | ||
change_column_null :corporate_trainings, :participants_count, false | ||
change_column_null :corporate_trainings, :training_duration, false | ||
change_column_null :corporate_trainings, :how_did_you_hear, false | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20240502051341_change_corporate_trainings_to_corporate_training_inquiries.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ChangeCorporateTrainingsToCorporateTrainingInquiries < ActiveRecord::Migration[6.1] | ||
def change | ||
rename_table :corporate_trainings, :corporate_training_inquiries | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters