mardi 21 juin 2022

Since switching to Ruby 3, migrations fail with ArgumentError: wrong number of arguments

  def up
    change_table :onboardings, bulk: true do |t|
      t.remove :name
      t.remove :address
      t.remove :occupation
      t.remove :nickname
    end
  end

this returns

ArgumentError: wrong number of arguments (given 2, expected 1)

It amazes me how hard it's been to find any kind of documentation on how this should be formatted now. Any help would be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire