require 'rails/generators/active_record'

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

      def copy_devise_migration
        migration_template "migration.rb", "db/migrate/devise_sms_authenticatable_add_to_#{table_name}"
      end
    end
  end
end
require 'rails/generators/active_record'

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

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

Add .rb suffix in migration
Add .rb suffix in migration
