Mercurial > hg > soundsoftware-site
annotate plugins/redmine_bibliography/db/migrate/002_create_publications.rb @ 1556:81dd71991dc1 feature_1136
hg-hash option does not appear reliable ("Not updating refs/notes/hg (new tip XXX does not contain YYY")
author | Chris Cannam |
---|---|
date | Wed, 13 Jan 2016 13:33:03 +0000 |
parents | b4b72f1eb644 |
children |
rev | line source |
---|---|
luis@328 | 1 class CreatePublications < ActiveRecord::Migration |
luis@328 | 2 def self.up |
luis@328 | 3 create_table :publications do |t| |
luis@328 | 4 t.column :title, :string |
luis@408 | 5 t.column :reviewed, :boolean, :default => false |
luis@328 | 6 end |
luis@328 | 7 end |
luis@328 | 8 |
luis@328 | 9 def self.down |
luis@328 | 10 drop_table :publications |
luis@328 | 11 end |
luis@328 | 12 end |