Commit 29aead0f05145a2ce981b9fd00a1feca682fa145
1 parent
73f1004a
Exists in
staging
and in
42 other branches
ActionItem135: don't generate id column from join table
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1175 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/021_add_articles_categories.rb
1 | class AddArticlesCategories < ActiveRecord::Migration | 1 | class AddArticlesCategories < ActiveRecord::Migration |
2 | def self.up | 2 | def self.up |
3 | - create_table :articles_categories do |t| | 3 | + create_table :articles_categories, :id => false do |t| |
4 | t.column :article_id, :integer | 4 | t.column :article_id, :integer |
5 | t.column :category_id, :integer | 5 | t.column :category_id, :integer |
6 | end | 6 | end |