diff --git a/lib/pii_safe_schema/migration_generator.rb b/lib/pii_safe_schema/migration_generator.rb index dc5016f..3aa511b 100644 --- a/lib/pii_safe_schema/migration_generator.rb +++ b/lib/pii_safe_schema/migration_generator.rb @@ -30,7 +30,7 @@ def generate_migration_lines(table, columns) migration_lines = columns.map do |c| "#{' ' * (safety_assured? ? 6 : 4)}" \ "change_column :#{table}, :#{c.column.name}, :#{c.column.type}, " \ - "comment: \'#{c.suggestion.to_json}\'" \ + "comment: '#{c.suggestion.to_json}'" \ end wrap_in_safety_assured(migration_lines) end diff --git a/lib/pii_safe_schema/notifiers/std_out.rb b/lib/pii_safe_schema/notifiers/std_out.rb index 4da11d5..60c23fd 100644 --- a/lib/pii_safe_schema/notifiers/std_out.rb +++ b/lib/pii_safe_schema/notifiers/std_out.rb @@ -13,7 +13,7 @@ def message(pii_column) <<~HEREDOC ------------------------------------------------------------------------------------ Annotation recommended on column: - #{pii_column.table}.#{pii_column.column.name}: comment: \"#{pii_column.suggestion}\" + #{pii_column.table}.#{pii_column.column.name}: comment: "#{pii_column.suggestion}" run `rake pii_safe_schema:generate_migrations` to generate all necessary annotation migrations. diff --git a/lib/pii_safe_schema/pii_column.rb b/lib/pii_safe_schema/pii_column.rb index b9c01f4..6b58283 100644 --- a/lib/pii_safe_schema/pii_column.rb +++ b/lib/pii_safe_schema/pii_column.rb @@ -48,7 +48,7 @@ def relevant_tables def ignored_column?(table, column) PiiSafeSchema.configuration. ignore_columns[table.to_sym]&. - include?(column.name.to_sym) + include?(column.name.to_sym) end end end