Sha256: cfe9fa74140901ee5f61f59595681a3e6084a786bb80fa9b402aed93c2f8f7a2

Contents?: true

Size: 544 Bytes

Versions: 7

Compression:

Stored size: 544 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

7 entries across 7 versions & 1 rubygems

Version Path
sufia-3.4.0.rc3 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.3.1 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.4.0.rc2 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.4.0.rc1 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.3.0 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.2.1 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb
sufia-3.1.3 lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb