projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
5207: Change expires_at column type from date to datetime.
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20150312151136_change_collection_expires_at_to_datetime.rb
diff --git a/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
b/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
new file mode 100644
(file)
index 0000000..
e5ecd8a
--- /dev/null
+++ b/
services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
@@ -0,0
+1,9
@@
+class ChangeCollectionExpiresAtToDatetime < ActiveRecord::Migration
+ def up
+ change_column :collections, :expires_at, :datetime
+ end
+
+ def down
+ change_column :collections, :expires_at, :date
+ end
+end