Sha256: 5ca20680de8189e83e1faa460708daff899a6b3916c0ef682a37b4d4d8288a21

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

class AddDcndlSchema < ActiveRecord::Migration[5.0]
  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

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb