Sha256: f088c6ffa65b84e7cad379cad7449d3a59a1e15a223f828d51a9390d170bfc86

Contents?: true

Size: 587 Bytes

Versions: 362

Compression:

Stored size: 587 Bytes

Contents

class RenameManifestationNumberListToNumberString < ActiveRecord::Migration
  def self.up
    rename_column :manifestations, :volume_number_list, :volume_number_string
    rename_column :manifestations, :issue_number_list, :issue_number_string
    rename_column :manifestations, :serial_number_list, :serial_number_string
  end

  def self.down
    rename_column :manifestations, :serial_number_string, :serial_number_list
    rename_column :manifestations, :issue_number_string, :issue_number_list
    rename_column :manifestations, :volume_number_string, :volume_number_list
  end
end

Version data entries

362 entries across 362 versions & 16 rubygems

Version Path
enju_manifestation_viewer-0.1.0.pre16 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_manifestation_viewer-0.1.0.pre15 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_manifestation_viewer-0.1.0.pre14 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_ndl-0.1.0.pre32 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_leaf-1.1.0.rc12 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_flower-0.1.0.pre16 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_circulation-0.1.0.pre36 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_library-0.1.0.pre33 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_event-0.1.17.pre18 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_leaf-1.1.0.rc11 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_subject-0.1.0.pre25 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_leaf-1.1.0.rc10 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_trunk_subject-1.0.4 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_circulation-0.1.0.pre35 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_event-0.1.17.pre17 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_flower-0.1.0.pre15 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_manifestation_viewer-0.1.0.pre13 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_resource_merge-0.1.0.pre10 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_bookmark-0.1.2.pre14 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
enju_question-0.1.0.pre11 spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb