Sha256: e1c895ee2515242294f5f962b51d3e36bee9f5cbafc5e63585672b7af02fc935

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

require 'rails/generators/active_record'

module ActiveRecord
  module Generators
    class TwoFactorAuthenticationGenerator < ActiveRecord::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def copy_two_factor_authentication_migration
        migration_template "migration.rb", "db/migrate/two_factor_authentication_add_to_#{table_name}.rb"
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
devise_two_factor_authentication-3.0.0 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-2.2.0 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-2.1.1 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-2.1.0 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-2.0.1 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-2.0.0 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-1.1.5 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-1.1.4 lib/generators/active_record/two_factor_authentication_generator.rb
two_factor_authentication-1.1.3 lib/generators/active_record/two_factor_authentication_generator.rb