Skip to content

MariaDB JSON columns cause ActiveRecord::ConfigurationError with store_accessor (filters.fields) #2402

Description

@omertahaoztop

Summary

When running Fizzy on MariaDB, requests fail with:

ActiveRecord::ConfigurationError: the column 'fields' has not been configured as a store raised from Filter.from_params. MariaDB exposes JSON as LONGTEXT, so Rails store_accessor doesn't recognize it as a structured column.

Steps to Reproduce

  1. Use MariaDB (e.g., 10.6/11.x) with Fizzy
  2. Run bin/rails db:prepare
  3. Hit /0000001/ or a board page

Temporary Workaround

Adding:

store :fields, coder: JSON

to app/models/filter.rb

and:

store :particulars, coder: JSON

to app/models/event.rb

Activity

  1. landure commented on Jan 27, 2026

    @landure

    I confirm this issue.

  2. added a commit that references this issue on Mar 28, 2026
    a341040
  3. diogovernier commented on Mar 28, 2026

    @diogovernier

    Hey, nice catch! 👋

    I believe this PR I created will solve this: #2769

  4. a-abdellatif98 commented on Aug 15, 2026

    @a-abdellatif98

    I'm taking a look at this. MariaDB reporting JSON as LONGTEXT means store_accessor never binds, so Filter.from_params blows up before anything renders.

    #2769 already proposes declaring the JSON attribute type. I'll verify that approach holds across all three adapters (Trilogy/MySQL, MariaDB, SQLite) and add coverage, since the fix needs to not regress the existing MySQL and SQLite paths. Will defer to #2769 if it lands first.

  5. landure commented on Nov 19, 2026

    @landure

    @omertahaoztop I'm still confronted with the issue. How did you solve the problem ?

  6. omertahaoztop commented on Nov 19, 2026

    @omertahaoztop
    Author

    @omertahaoztop I'm still confronted with the issue. How did you solve the problem ?

    I just stop using Fizzy..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions