Sha256: 290856f065382e3588d03ae91133b29ae00f5e0d5cb9ef02230a5b3679851645

Contents?: true

Size: 360 Bytes

Versions: 27

Compression:

Stored size: 360 Bytes

Contents

require 'rails/generators/active_record'

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

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
devise_phone-0.1.26 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.25 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.24 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.23 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.22 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.21 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.2 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.1 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.1.0 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.17 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1667 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1666 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1665 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1664 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1663 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1662 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.1661 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.166 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.165 lib/generators/active_record/devise_phone_generator.rb
devise_phone-0.0.164 lib/generators/active_record/devise_phone_generator.rb