Class: RailsOtp::MigrationGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/rails_otp/migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_otp_migrationObject



8
9
10
# File 'lib/generators/rails_otp/migration_generator.rb', line 8

def copy_otp_migration
  migration_template "migration.rb", "db/migrate/otp_add_to_#{table_name}.rb"
end