add timestamps to crocodoc_documents

Change-Id: Ib1226b0aed4be89456b5c8f2ca250318ec254b13
Reviewed-on: https://gerrit.instructure.com/33317
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
This commit is contained in:
Cameron Matheson 2014-04-14 17:09:54 -06:00
parent 95ca14581e
commit 8ae4e0dfcb
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
class AddTimestampsToCrocodocDocuments < ActiveRecord::Migration
tag :predeploy
def self.up
add_timestamps(:crocodoc_documents)
end
def self.down
remove_column :crocodoc_documents, :created_at
remove_column :crocodoc_documents, :updated_at
end
end