Sha256: 6f07b70c7144427a6d04dd5bd86664dc24ff12b45c53eec05d7bdaf1acc3c099

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

class CreateChecksumAuditLogs < ActiveRecord::Migration
  def self.up
    create_table :checksum_audit_logs do |t|
      t.string :pid
      t.string :dsid
      t.string :version
      t.integer :pass
      t.string :expected_result
      t.string :actual_result
      t.timestamps
    end
    add_index :checksum_audit_logs, [:pid, :dsid], name: 'by_pid_and_dsid', order: { created_at: "DESC" }
  end

  def self.down
    remove_index(:checksum_audit_logs, name: 'by_pid_and_dsid')
    drop_table :checksum_audit_logs
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-models-6.7.0 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb
sufia-models-6.4.0 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb
sufia-models-6.3.0 lib/generators/sufia/models/templates/migrations/create_checksum_audit_logs.rb