Sha256: 376b8b10af0ad61c0fe50df81fc490acd32fdc1bd5ea5e2e757b38cb73142596

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 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}.rb"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-otp-1.0.0 lib/generators/active_record/devise_otp_generator.rb
devise-otp-0.8.0 lib/generators/active_record/devise_otp_generator.rb
devise-otp-0.7.1 lib/generators/active_record/devise_otp_generator.rb
devise-otp-0.7.0 lib/generators/active_record/devise_otp_generator.rb
devise-otp-0.6.0 lib/generators/active_record/devise_otp_generator.rb
devise-otp-0.5.0 lib/generators/active_record/devise_otp_generator.rb