Sha256: de8d7e6d9839c6c1819e569542e152066b07d33b30ab7909c042b88baae54f35
Contents?: true
Size: 1.11 KB
Versions: 28
Compression:
Stored size: 1.11 KB
Contents
# Copyright © 2012 The Pennsylvania State University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. 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
28 entries across 28 versions & 2 rubygems