Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: fallback to custom type for flags (discourse#27961)
Before migration is run flags code is evaluated. It is causing error: ``` NoMethodError: undefined method `require_message' for an instance of Flag (NoMethodError) Did you mean? require_dependency /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activemodel-7.1.3.4/lib/active_model/attribute_methods.rb:489:in `method_missing' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/relation/delegation.rb:100:in `each' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/relation/delegation.rb:100:in `each' /var/www/discourse/app/models/post_action_type.rb:64:in `reject' ``` The solution is to temporarily fall back to old column name - custom_type
- Loading branch information