class RuboCop::Cop::Doctolib::NoUnsafeBackgroundMigration
Flag migrations which alter the “shape” of the schema.
@example
# bad add_column :foos, :bar, :text # good add_index :foos, :bar
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/doctolib/no_unsafe_background_migration.rb, line 39 def on_send(node) add_offense(node) if unsafe_operation?(node) end