We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c2309 commit 62a1134Copy full SHA for 62a1134
app/services/forest_liana/schema_adapter.rb
@@ -446,7 +446,11 @@ def add_default_value(column_schema, column)
446
def add_validations(column_schema, column)
447
# NOTICE: Do not consider validations if a before_validation Active Records
448
# Callback is detected.
449
- if @model._validation_callbacks.map(&:kind).include? :before
+ default_callback_excluded = [:normalize_changed_in_place_attributes]
450
+ if @model._validation_callbacks
451
+ .reject { |callback| default_callback_excluded.include?(callback.filter) }
452
+ .map(&:kind).include?(:before)
453
+
454
return column_schema
455
end
456
0 commit comments