Mercurial > hg > soundsoftware-site
changeset 453:2daa350e1da2 feature_36
projects - publications relationship migration
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 13 Jun 2011 16:12:55 +0100 |
parents | 34a6cf259682 |
children | 2f1a308c4c11 |
files | vendor/plugins/redmine_bibliography/db/migrate/005_create_projects_publications_join_table.rb |
diffstat | 1 files changed, 12 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/005_create_projects_publications_join_table.rb Mon Jun 13 16:12:55 2011 +0100 @@ -0,0 +1,12 @@ +class CreateProjectsPublicationsJoinTable < ActiveRecord::Migration + def self.up + create_table :projects_publications, :id => false do |t| + t.integer :project_id + t.integer :publication_id + end + end + + def self.down + drop_table :projects_publications + end +end \ No newline at end of file