Sha256: 6426afc09b157e0761f2f79ad59fc08d58cab7cf713a8f44148cb5401e6ebad0

Contents?: true

Size: 490 Bytes

Versions: 273

Compression:

Stored size: 490 Bytes

Contents

module ActiveRecord
  module Generators
    module Migration
      # Implement the required interface for Rails::Generators::Migration.
      def next_migration_number(dirname) #:nodoc:
        next_migration_number = current_migration_number(dirname) + 1
        if ActiveRecord::Base.timestamped_migrations
          [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
        else
          "%.3d" % next_migration_number
        end
      end
    end
  end
end

Version data entries

273 entries across 242 versions & 18 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activerecord-3.2.22.5/lib/rails/generators/active_record/migration.rb
activerecord-3.2.22.5 lib/rails/generators/active_record/migration.rb
activerecord-3.2.22.4 lib/rails/generators/active_record/migration.rb
activerecord-3.2.22.3 lib/rails/generators/active_record/migration.rb
activerecord-3.2.22.2 lib/rails/generators/active_record/migration.rb
activerecord-3.2.22.1 lib/rails/generators/active_record/migration.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/rails/generators/active_record/migration.rb
activerecord-3.2.22 lib/rails/generators/active_record/migration.rb
ez-1.3.0 lib/generators/ez/resource/migration.rb
ez-1.2.0 lib/generators/ez/resource/migration.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.12/lib/rails/generators/active_record/migration.rb
activerecord-3.2.21 lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/rails/generators/active_record/migration.rb
ez-1.1.3 lib/generators/ez/resource/migration.rb
ez-1.1.2 lib/generators/ez/resource/migration.rb