# File lib/generators/data_mapper/migration/migration_generator.rb, line 20
      def set_local_assigns!
        if file_name =~ /^(add|remove|drop)_.*_(?:to|from)_(.*)/
          @migration_action = $1 == 'add' ? 'add' : 'drop'
          @table_name       = $2.pluralize
        end
      end