Sha256: b28eb31d4e04512cac1650dc427b50864831c9e5c054c672a77667731c4ff472

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class AuditMigrationGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  def copy_audit_migration_files
    version = Time.now.utc.strftime('%Y%m%d%H%M%S')
    copy_file "01_migration.rb", "db/migrate/#{version}_CreateAuditTableAndTrigger.rb"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sequel-bulk-audit-0.2.0 lib/generators/audit_migration/audit_migration_generator.rb