Class: Rodauth::Rails::Generators::MigrationGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_rodauth_migrationObject



19
20
21
22
23
# File 'lib/generators/rodauth/migration_generator.rb', line 19

def create_rodauth_migration
  validate_features or return

  migration_template "db/migrate/create_rodauth.rb", File.join(db_migrate_path, "#{migration_name}.rb")
end