Sha256: 82fe962c50576393930b5e58138ad2873672eaecfd2f5ae04c39606605e3bef7
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class DeviseOtpGenerator < ActiveRecord::Generators::Base source_root File.expand_path("../templates", __FILE__) def copy_devise_migration migration_template "migration.rb", "db/migrate/devise_otp_add_to_#{table_name}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-otp-0.2.0 | lib/generators/active_record/devise_otp_generator.rb |
devise-otp-0.1.1 | lib/generators/active_record/devise_otp_generator.rb |