# HG changeset patch # User luisf # Date 1353351187 0 # Node ID b6f7225bf9548f68db09f67fd78a953898744653 # Parent 6a48306d5df802e932d1e5be53ce22a2f47f23e4 Created migration to add 3 columns to the publications table: DOI created_at and updated_at. diff -r 6a48306d5df8 -r b6f7225bf954 vendor/plugins/redmine_bibliography/db/migrate/008_add_doi_and_timestamp_columns_to_publications.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/db/migrate/008_add_doi_and_timestamp_columns_to_publications.rb Mon Nov 19 18:53:07 2012 +0000 @@ -0,0 +1,12 @@ +class AddDoiAndTimestampColumnsToPublications < ActiveRecord::Migration + def self.up + add_column :publications, :doi, :string + add_timestamps :publications + + end + + def self.down + remove_column :publications, :doi + remove_timestamps :publications + end +end