added migration to add date fields to deliverables

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@28 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent b930d7444b
commit b6b41bcb0b
  1. 11
      db/migrate/005_add_deliverables_date_fields.rb

@ -0,0 +1,11 @@
class AddDeliverablesDateFields < ActiveRecord::Migration
def self.up
add_column :deliverables, :created_on, :timestamp, :null => false
add_column :deliverables, :updated_on, :timestamp, :null => false
end
def self.down
remove_column :deliverables, :created_on
remove_column :deliverables, :updated_on
end
end
Loading…
Cancel
Save