Skip to content

Commit

Permalink
Updated the error message for Neeto/UnsafeColumnDeletion cop (#4)
Browse files Browse the repository at this point in the history
* Updated the error message for Neeto/UnsafeColumnDeletion cop

* Bump version to v0.1.1
  • Loading branch information
AbhayVAshokan authored Aug 12, 2024
1 parent b716f0c commit ba3a8ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/neeto/unsafe_column_deletion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class UnsafeColumnDeletion < Base

MSG_REMOVE_COLUMN = "'remove_column' is a dangerous operation. If " \
"not used correctly, it could cause irreversible data loss. You must perform " \
"'rename_column :%{table_name}, %{column_name}, :%{column_name}_deprecated_on_#{CURRENT_DATE}' " \
"'rename_column :%{table_name}, :%{column_name}, :%{column_name}_deprecated_on_#{CURRENT_DATE}' " \
"instead. The renamed column can be safely dropped in a future migration."

MSG_CHANGE_TABLE = "'t.remove' is a dangerous operation. If not used correctly, " \
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/neeto/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module RuboCop
module Neeto
VERSION = "0.1.0"
VERSION = "0.1.1"
end
end

0 comments on commit ba3a8ff

Please sign in to comment.