Sha256: fb9c09e090589e28d87da4a5ee7ef8d838f748f3459f0e63f4e378cdeb0cc7b2
Contents?: true
Size: 447 Bytes
Versions: 224
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module Motor module Generators module Migration def next_migration_number(dirname) next_migration_number = current_migration_number(dirname) + 1 if ::ActiveRecord::Base.timestamped_migrations [Time.now.utc.strftime('%Y%m%d%H%M%S'), format('%.14d', next_migration_number)].max else format('%.3d', next_migration_number) end end end end end
Version data entries
224 entries across 224 versions & 5 rubygems