Class: ActiveSnapshot::MigrationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/active_snapshot/migration_generator.rb

Overview

Basic structure to support a generator that builds a migration

Direct Known Subclasses

InstallGenerator

Class Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



9
10
11
# File 'lib/generators/active_snapshot/migration_generator.rb', line 9

def self.next_migration_number(dirname)
  ::ActiveRecord::Generators::Base.next_migration_number(dirname)
end