Sha256: 7b05714850ff7b5f6c315a073b1b560cabf4b2b0fac17165d0f8b8d1e671dcde

Contents?: true

Size: 560 Bytes

Versions: 11

Compression:

Stored size: 560 Bytes

Contents

require 'rails/generators/named_base'
require 'rails/generators/migration'
require 'rails/generators/active_model'

module ActiveRecordSchema
  module Generators
    class Base < ::Rails::Generators::NamedBase
    
      include Rails::Generators::Migration

      def self.base_root
        File.dirname(__FILE__)
      end

      def self.next_migration_number(dirname) #:nodoc:
        next_migration_number = current_migration_number(dirname) + 1
        ActiveRecord::Migration.next_migration_number(next_migration_number)
      end
    
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_record_schema-0.5.0 lib/generators/active_record_schema.rb
active_record_schema-0.4.0 lib/generators/active_record_schema.rb
active_record_schema-0.3.5 lib/generators/active_record_schema.rb
active_record_schema-0.3.4 lib/generators/active_record_schema.rb
active_record_schema-0.3.3 lib/generators/active_record_schema.rb
active_record_schema-0.3.2 lib/generators/active_record_schema.rb
active_record_schema-0.2.5 lib/generators/active_record_schema.rb
active_record_schema-0.2.4 lib/generators/active_record_schema.rb
active_record_schema-0.2.2 lib/generators/active_record_schema.rb
active_record_schema-0.2.1 lib/generators/active_record_schema.rb
active_record_schema-0.2.0 lib/generators/active_record_schema.rb