Skip to content

Conversation

@amatsuda
Copy link
Collaborator

This patch manually edits a broken migration file introduced via a991671.

Since the hashrocket here will be treated as a Hash object literal rather than a kwarg under recent versions of Ruby, which will end up with creating broken schema.rb with the following diff via db:migrate.

-    t.string "item_type", null: false
+    t.string "item_type"
+    t.string "{:null=>false}"

The hashrocket here will be treated as a Hash object literal rather than
a kwarg under recent versions of Ruby, and this will end up with
creating broken schema.rb with the following diff via db:migrate
-    t.string "item_type", null: false
+    t.string "item_type"
+    t.string "{:null=>false}"
@amatsuda amatsuda merged commit 104726a into rubycentral:main Nov 14, 2024
@amatsuda amatsuda deleted the broken_migration_due_to_a_hashrocket branch November 14, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant