Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRiedler committed Feb 22, 2024
1 parent 19a1089 commit a35553c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pii_safe_schema/migration_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/pii_safe_schema/notifiers/std_out.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/pii_safe_schema/pii_column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a35553c

Please sign in to comment.