changeset 1097:981cea967d17 bibplugin_db_migrations

Created migration to add timestamps to the authorships table.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 29 Nov 2012 14:40:50 +0000
parents 8b57fd618c84
children c5dc7c772de3 5ca1f4a47171
files vendor/plugins/redmine_bibliography/db/migrate/010_add_timestamp_columns_to_authorships.rb
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/plugins/redmine_bibliography/db/migrate/010_add_timestamp_columns_to_authorships.rb	Thu Nov 29 14:40:50 2012 +0000
@@ -0,0 +1,9 @@
+class AddTimestampColumnsToAuthorships < ActiveRecord::Migration
+  def self.up
+    add_timestamps :authorships
+  end
+
+  def self.down
+    remove_timestamps :authorships
+  end
+end