Revision 453:2daa350e1da2 vendor
| vendor/plugins/redmine_bibliography/db/migrate/005_create_projects_publications_join_table.rb | ||
|---|---|---|
| 1 |
class CreateProjectsPublicationsJoinTable < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :projects_publications, :id => false do |t| |
|
| 4 |
t.integer :project_id |
|
| 5 |
t.integer :publication_id |
|
| 6 |
end |
|
| 7 |
end |
|
| 8 |
|
|
| 9 |
def self.down |
|
| 10 |
drop_table :projects_publications |
|
| 11 |
end |
|
| 12 |
end |
|
Also available in: Unified diff