Sha256: c3297ca5fa2deb2265513da9dbf4429952048d66a8f3fcdbf4f17a6144e66c33

Contents?: true

Size: 361 Bytes

Versions: 8

Compression:

Stored size: 361 Bytes

Contents

require 'rails/generators/active_record'

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

      def copy_devise_migration
        migration_template "migration.rb", "db/migrate/devise_authy_add_to_#{table_name}.rb"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-authy-1.8.3 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.8.2 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.8.1 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.8.0 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.7.0 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.6.0 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.5.3 lib/generators/active_record/devise_authy_generator.rb
devise-authy-1.5.2 lib/generators/active_record/devise_authy_generator.rb