From 13b1f1e9084fec74bdc872c322f0fa88e9e4779f Mon Sep 17 00:00:00 2001 From: Trevor Creech Date: Tue, 11 Dec 2018 14:24:01 -0800 Subject: [PATCH] don't strip encoding --- .rubocop_schema.49.yml | 3 +++ .rubocop_schema.53.yml | 3 +++ spec/integration/integration_spec.rb | 2 ++ spec/test-app/db/schema.rb | 2 ++ 4 files changed, 10 insertions(+) diff --git a/.rubocop_schema.49.yml b/.rubocop_schema.49.yml index 8996d87..316ce49 100644 --- a/.rubocop_schema.49.yml +++ b/.rubocop_schema.49.yml @@ -13,6 +13,9 @@ Layout/ExtraSpacing: Layout/SpaceBeforeFirstArg: Enabled: true +Style/Encoding: + Enabled: false + Style/NumericLiterals: Enabled: false diff --git a/.rubocop_schema.53.yml b/.rubocop_schema.53.yml index 7d6be78..2d6796b 100644 --- a/.rubocop_schema.53.yml +++ b/.rubocop_schema.53.yml @@ -13,6 +13,9 @@ Layout/ExtraSpacing: Layout/SpaceBeforeFirstArg: Enabled: true +Style/Encoding: + Enabled: false + Style/NumericLiterals: Enabled: false diff --git a/spec/integration/integration_spec.rb b/spec/integration/integration_spec.rb index 20f1885..98bc314 100644 --- a/spec/integration/integration_spec.rb +++ b/spec/integration/integration_spec.rb @@ -20,6 +20,8 @@ def reference_db_schema <<-RUBY +# encoding: UTF-8 + # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. diff --git a/spec/test-app/db/schema.rb b/spec/test-app/db/schema.rb index d1311a0..2f5f687 100644 --- a/spec/test-app/db/schema.rb +++ b/spec/test-app/db/schema.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition.