Sha256: 4c12c49805542276d0d23c6e9692843c8acb9a030db6d7b01668090ec2a3a27a
Contents?: true
Size: 426 Bytes
Versions: 8
Compression:
Stored size: 426 Bytes
Contents
module Cm module Generators class MigrationGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration def self.next_migration_number(_dirname) Time.now.utc.strftime("%Y%m%d%H%M%S") end source_root File.expand_path("templates", __dir__) def create_migration_file migration_template "template.rb", "cm/migrate/#{file_name}.rb" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems