Sha256: d64bfea2adb45f8652e02adedbe05ab8c7b3a700f06a28c4d5cee8495f9ed74f

Contents?: true

Size: 1.22 KB

Versions: 275

Compression:

Stored size: 1.22 KB

Contents

class AddDcndlSchema < ActiveRecord::Migration
  def self.up
    add_column :manifestations, :title_alternative_transcription, :text
    add_column :patrons, :full_name_alternative_transcription, :text
    add_column :manifestations, :description, :text
    add_column :manifestations, :abstract, :text
    add_column :manifestations, :available_at, :timestamp
    add_column :manifestations, :valid_until, :timestamp
    add_column :manifestations, :date_submitted, :timestamp
    add_column :manifestations, :date_accepted, :timestamp
    add_column :manifestations, :date_caputured, :timestamp
    rename_column :manifestations, :copyright_date, :date_copyrighted
  end

  def self.down
    remove_column :manifestations, :title_alternative_transcription
    remove_column :patrons, :full_name_alternative_transcription
    remove_column :manifestations, :description
    remove_column :manifestations, :abstract
    remove_column :manifestations, :available_at
    remove_column :manifestations, :valid_until
    remove_column :manifestations, :date_submitted
    remove_column :manifestations, :date_accepted
    remove_column :manifestations, :date_caputured
    rename_column :manifestations, :date_copyrighted, :copyright_date
  end
end

Version data entries

275 entries across 275 versions & 14 rubygems

Version Path
enju_circulation-0.0.57 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_resource_merge-0.0.13 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.56 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.55 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.54 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.53 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.52 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.2 db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.1 db/migrate/20091012101112_add_dcndl_schema.rb
enju_resource_merge-0.0.12 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.51 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.50 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_resource_merge-0.0.11 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.49 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.48 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb