To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_bibliography / db / migrate / 008_add_doi_and_timestamp_columns_to_publications.rb @ 1055:b6f7225bf954

History | View | Annotate | Download (271 Bytes)

1 1055:b6f7225bf954 luis
class AddDoiAndTimestampColumnsToPublications < ActiveRecord::Migration
2
  def self.up
3
    add_column :publications, :doi, :string
4
    add_timestamps :publications
5
6
  end
7
8
  def self.down
9
    remove_column :publications, :doi
10
    remove_timestamps :publications
11
  end
12
end