Sha256: 18848599c1b38902af4dafce1e2600aeffd47cde59e0086ea05c8b9ca2f418e8
Contents?: true
Size: 343 Bytes
Versions: 4
Compression:
Stored size: 343 Bytes
Contents
require 'rails/generators/base' class AsyncRequestGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) def copy_initializer_file file_name = "create_async_request_jobs.rb" now = DateTime.current.strftime("%Y%m%d%H%M%S") copy_file file_name, "db/migrate/#{now}_#{file_name}" end end
Version data entries
4 entries across 4 versions & 1 rubygems