X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/86c4b60b5f9e8ab1f20eeee1da0afce3db57ab3b..a1a9b820c16e5526e99d6d1b576ea53e9bddbc24:/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb diff --git a/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb b/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb index 5c21c0bb2d..4f83ecab2c 100644 --- a/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb +++ b/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb @@ -3,7 +3,7 @@ class CollectionUseRegularUuids < ActiveRecord::Migration add_column :collections, :name, :string add_column :collections, :description, :string add_column :collections, :properties, :text - add_column :collections, :expire_time, :date + add_column :collections, :expires_at, :date remove_column :collections, :locator say_with_time "Step 1. Move manifest hashes into portable_data_hash field" do @@ -175,6 +175,6 @@ where head_uuid like '________________________________+%' or tail_uuid like '___ end def down - # Not gonna happen. + raise ActiveRecord::IrreversibleMigration, "Can't downmigrate changes to collections and links without potentially losing data." end end