Skip to content

Commit

Permalink
Merge pull request #2323 from tvdeyen/remove-json-decoder
Browse files Browse the repository at this point in the history
Remove JSON decode from ingredient data store
  • Loading branch information
tvdeyen authored Apr 27, 2022
2 parents 8e6200d + 34c287a commit 8dc536a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/alchemy/ingredient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ class DefinitionError < StandardError; end

include Hints

# MariaDB needs to be told explicitly to use `data` as a JSON store. All other databases
# can do this natively.
store :data, coder: JSON

self.table_name = "alchemy_ingredients"

belongs_to :element, touch: true, class_name: "Alchemy::Element", inverse_of: :ingredients
Expand Down

0 comments on commit 8dc536a

Please sign in to comment.