Disable raise_in_transactional_callbacks for now

This commit is contained in:
Arthur Neves 2015-04-28 23:15:13 -04:00
parent 338fb6efdd
commit d2b1cc55b9
No known key found for this signature in database
GPG Key ID: 04A390FB1E433E17

View File

@ -117,9 +117,9 @@ module Discourse
# see: http://stackoverflow.com/questions/11894180/how-does-one-correctly-add-custom-sql-dml-in-migrations/11894420#11894420
config.active_record.schema_format = :sql
if Rails.version >= "4.2.0"
if Rails.version >= "4.2.0" && Rails.version < "5.0.0"
# Opt-into the default behavior in Rails 5
# config.active_record.raise_in_transactional_callbacks = true
config.active_record.raise_in_transactional_callbacks = false
end
# per https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet