Sha256: 5351203a567373e0984be0dc689525261ddba694f578fa1f51be33f204c447b5
Contents?: true
Size: 796 Bytes
Versions: 10
Compression:
Stored size: 796 Bytes
Contents
# frozen_string_literal: true require "rails/generators/base" require "rails/generators/migration" class RailsApiLogger module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../../templates", __FILE__) # Implement the required interface for Rails::Generators::Migration. def self.next_migration_number(dirname) next_migration_number = current_migration_number(dirname) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end desc "Copy migrations to your application." def copy_migrations migration_template "create_rails_api_logger_table.rb", "db/migrate/create_rails_api_logger_table.rb" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems