Sha256: 2dc0a85651faae617d0993012c0d1126fd31ccb89382f235081449f36099f631

Contents?: true

Size: 1.22 KB

Versions: 160

Compression:

Stored size: 1.22 KB

Contents

class AddDcndlSchema < ActiveRecord::Migration[4.2]
  def self.up
    add_column :manifestations, :title_alternative_transcription, :text
    add_column :agents, :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_captured, :timestamp
    rename_column :manifestations, :copyright_date, :date_copyrighted
  end

  def self.down
    remove_column :manifestations, :title_alternative_transcription
    remove_column :agents, :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_captured
    rename_column :manifestations, :date_copyrighted, :copyright_date
  end
end

Version data entries

160 entries across 160 versions & 21 rubygems

Version Path
enju_event-0.4.0.beta.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_subject-0.4.0.beta.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_message-0.4.0.beta.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.4.0.beta.1 db/migrate/20091012101112_add_dcndl_schema.rb
enju_library-0.4.0.beta.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_seed-0.5.0.beta.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_seed-0.4.0.beta.2 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.3.5 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.3.5 db/migrate/20091012101112_add_dcndl_schema.rb
enju_leaf-1.3.3.1 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_library-0.3.5 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_leaf-1.3.3 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_manifestation_viewer-0.3.3 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.3.4 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.3.4 db/migrate/20091012101112_add_dcndl_schema.rb
enju_biblio-0.3.3 db/migrate/20091012101112_add_dcndl_schema.rb
enju_library-0.3.4 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_seed-0.3.3 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_library-0.3.3 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
enju_circulation-0.3.3 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb