Sha256: 135eb342328cebd94d421b4d2146d25af5b4b7a3f2ddf854251bbcc7a0e0f9e2

Contents?: true

Size: 526 Bytes

Versions: 95

Compression:

Stored size: 526 Bytes

Contents

require 'rails/generators/migration'

module ActiveRecord
  module Generators # :nodoc:
    module Migration
      extend ActiveSupport::Concern
      include Rails::Generators::Migration

      module ClassMethods
        # Implement the required interface for Rails::Generators::Migration.
        def next_migration_number(dirname)
          next_migration_number = current_migration_number(dirname) + 1
          ActiveRecord::Migration.next_migration_number(next_migration_number)
        end
      end
    end
  end
end

Version data entries

95 entries across 91 versions & 8 rubygems

Version Path
activerecord-4.2.11.3 lib/rails/generators/active_record/migration.rb
activerecord-4.2.11.2 lib/rails/generators/active_record/migration.rb
activerecord-4.2.11.1 lib/rails/generators/active_record/migration.rb
activerecord-4.2.11 lib/rails/generators/active_record/migration.rb
activerecord-4.2.10 lib/rails/generators/active_record/migration.rb
activerecord-4.2.10.rc1 lib/rails/generators/active_record/migration.rb
activerecord-4.2.9 lib/rails/generators/active_record/migration.rb
activerecord-4.2.9.rc2 lib/rails/generators/active_record/migration.rb
activerecord-4.2.9.rc1 lib/rails/generators/active_record/migration.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-4.2.8/lib/rails/generators/active_record/migration.rb
activerecord-4.2.8 lib/rails/generators/active_record/migration.rb
activerecord-4.2.8.rc1 lib/rails/generators/active_record/migration.rb
activerecord-4.2.7.1 lib/rails/generators/active_record/migration.rb
activerecord-4.2.7 lib/rails/generators/active_record/migration.rb
activerecord-4.1.16 lib/rails/generators/active_record/migration.rb
activerecord-4.1.16.rc1 lib/rails/generators/active_record/migration.rb
activerecord-4.2.7.rc1 lib/rails/generators/active_record/migration.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.6/lib/rails/generators/active_record/migration.rb
activerecord-4.1.15 lib/rails/generators/active_record/migration.rb
activerecord-4.2.6 lib/rails/generators/active_record/migration.rb