Mercurial > hg > soundsoftware-site
annotate vendor/plugins/redmine_bibliography/db/migrate/002_create_publications.rb @ 402:ef8a9bc67e15 feature_36
Fixed the migrations, so that the one-to-one association works correctly.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 12 Apr 2011 12:53:16 +0100 |
parents | aed18b463206 |
children | cd3158bf28b5 |
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@328 | 5 end |
luis@328 | 6 end |
luis@328 | 7 |
luis@328 | 8 def self.down |
luis@328 | 9 drop_table :publications |
luis@328 | 10 end |
luis@328 | 11 end |