Fix guides/active_record_migrations.rb template to use the current migrations version

This commit is contained in:
fatkodima 2023-12-17 11:36:10 +02:00
parent d88f108690
commit a69228efa4

@ -31,7 +31,7 @@
class Payment < ActiveRecord::Base class Payment < ActiveRecord::Base
end end
class ChangeAmountToAddScale < ActiveRecord::Migration[7.2] class ChangeAmountToAddScale < ActiveRecord::Migration::Current # or use a specific version via `Migration[number]`
def change def change
reversible do |dir| reversible do |dir|
dir.up do dir.up do