Class: Flipper::Generators::ActiveRecordGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



15
16
17
# File 'lib/generators/flipper/active_record_generator.rb', line 15

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

Instance Method Details

#create_migration_fileObject



11
12
13
# File 'lib/generators/flipper/active_record_generator.rb', line 11

def create_migration_file
  migration_template "migration.rb", "db/migrate/create_flipper_tables.rb"
end