Closed dpaluy closed 2 years ago
After migrating from Rails 6.1 to Rails 7 and updating this gem to 2.0.0 the schema.rb isn't generated correctly.
My migration is:
class AddMood < ActiveRecord::Migration[7.0] def change create_enum :mood, %w(happy great been_better) end end
The schema.rb result is:
schema.rb
ActiveRecord::Schema.define(version: 2021_12_24_061446) do create_enum :mood, [["happy", "great", "been_better"]] end
This double array fails when running: rake db:schema:load
rake db:schema:load
Expected behavior
ActiveRecord::Schema.define(version: 2021_12_24_061446) do create_enum :mood, ["happy", "great", "been_better"] end
Context (please complete the following information):
Thank you for the reporting! Can you try fix/rails-7-schema-dumper branch?
fix/rails-7-schema-dumper
@bibendi Your fix works correctly. Thank you for the prompt fix
Cool. I'll release the gem now.
After migrating from Rails 6.1 to Rails 7 and updating this gem to 2.0.0 the schema.rb isn't generated correctly.
My migration is:
The
schema.rb
result is:This double array fails when running:
rake db:schema:load
Expected behavior
Context (please complete the following information):