diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-24 18:16:36 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-24 21:43:42 -0700 |
commit | 05cb559d85a46cb8861044d57a4f31ca3c6a17d8 (patch) | |
tree | 786ee78c4eaecaf779a9a176b051a3948c84200b /generator_templates | |
parent | 6cb30f83255f0982646fea688f2fe275a3b22cc7 (diff) | |
download | gitlab-ce-05cb559d85a46cb8861044d57a4f31ca3c6a17d8.tar.gz |
Add frozen_string_literal to migration templatessh-add-frozen-literal-templates
Part of #47424
Diffstat (limited to 'generator_templates')
3 files changed, 6 insertions, 0 deletions
diff --git a/generator_templates/active_record/migration/create_table_migration.rb b/generator_templates/active_record/migration/create_table_migration.rb index 59a9d37df0f..92e963911d0 100644 --- a/generator_templates/active_record/migration/create_table_migration.rb +++ b/generator_templates/active_record/migration/create_table_migration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. diff --git a/generator_templates/active_record/migration/migration.rb b/generator_templates/active_record/migration/migration.rb index 08752b3af50..38edab82550 100644 --- a/generator_templates/active_record/migration/migration.rb +++ b/generator_templates/active_record/migration/migration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. diff --git a/generator_templates/rails/post_deployment_migration/migration.rb b/generator_templates/rails/post_deployment_migration/migration.rb index f2dff84b618..353709f7c9c 100644 --- a/generator_templates/rails/post_deployment_migration/migration.rb +++ b/generator_templates/rails/post_deployment_migration/migration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. |