I need to know the number of a migration within the self.up() method,
and I DON’T WANT TO RELY ON THE FILENAME (XXX_my_migration.rb).
So is there a way to determine it somehow?
puts 'doing migration number ’ + migration_number()
Thanks a lot for help.