From 05cb559d85a46cb8861044d57a4f31ca3c6a17d8 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 24 Jul 2018 18:16:36 -0700 Subject: Add frozen_string_literal to migration templates Part of #47424 --- generator_templates/active_record/migration/create_table_migration.rb | 2 ++ generator_templates/active_record/migration/migration.rb | 2 ++ generator_templates/rails/post_deployment_migration/migration.rb | 2 ++ 3 files changed, 6 insertions(+) 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. -- cgit v1.2.1