Skip to content

Commit 4540c7a

Browse files
authored
fix(schema-bypass): properly bypass schema update using forest_disable_auto_schema_apply (#721)
1 parent 04efe9c commit 4540c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forest_liana/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def eager_load_active_record_descendants app
107107
if ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP']
108108
FOREST_LOGGER.warn "DEPRECATION WARNING: FOREST_DEACTIVATE_AUTOMATIC_APIMAP option has been renamed. Please use FOREST_DISABLE_AUTO_SCHEMA_APPLY instead."
109109
end
110-
bootstrapper.synchronize unless ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP'] == true || ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY'] == true || Rails.env.test?
110+
bootstrapper.synchronize unless ActiveRecord::Type::Boolean.new.cast(ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP']) || ActiveRecord::Type::Boolean.new.cast(ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY']) || Rails.env.test?
111111
end
112112
end
113113
end

0 commit comments

Comments
 (0)