Fix guides/active_record_migrations.rb
template to use the current migrations version
This commit is contained in:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user