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_question-0.0.21 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.8 db/migrate/20091012101112_add_dcndl_schema.rb
enju_library-0.0.2 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_bookmark-0.0.22 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.71 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_event-0.1.13 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_event-0.0.27 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_subject-0.0.18 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.7 db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.6 db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.5 db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.0.4 db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.70 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_subject-0.0.17 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.69 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.68 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_event-0.0.26 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_question-0.0.20 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.0.67 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_event-0.0.25 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb