File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ def invert_update_trigger(args)
5757
5858 private
5959
60- MESSAGE_IRREVERSIBLE = "%<method>s is reversible only if given a `revert_to_version`" . freeze
60+ MESSAGE_IRREVERSIBLE = "`%s` is reversible only if given a `revert_to_version`" . freeze
6161
6262 def perform_inversion ( method , args )
63- arguments = Fx :: CommandRecorder :: Arguments . new ( args )
63+ arguments = Arguments . new ( args )
6464
6565 if arguments . revert_to_version . nil?
66- raise ActiveRecord ::IrreversibleMigration , format ( MESSAGE_IRREVERSIBLE % { method : method } )
66+ raise ActiveRecord ::IrreversibleMigration , format ( MESSAGE_IRREVERSIBLE , method )
6767 end
6868
6969 [ method , arguments . invert_version . to_a ]
@@ -87,7 +87,7 @@ def revert_to_version
8787 end
8888
8989 def invert_version
90- Arguments . new ( [ function , options_for_revert ] )
90+ self . class . new ( [ function , options_for_revert ] )
9191 end
9292
9393 def to_a
You can’t perform that action at this time.
0 commit comments