Add stock_article_selection (deleting multiple stock articles at once)
This commit is contained in:
parent
ecb7ce7cd3
commit
099e2b9b06
13 changed files with 217 additions and 34 deletions
18
db/migrate/20130112121840_create_stock_article_selections.rb
Normal file
18
db/migrate/20130112121840_create_stock_article_selections.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class CreateStockArticleSelections < ActiveRecord::Migration
|
||||
def up
|
||||
create_table :stock_article_selections do |t|
|
||||
t.integer :created_by_user_id
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
create_table :stock_article_selections_stock_articles, :id => false do |t|
|
||||
t.integer :stock_article_id
|
||||
t.integer :stock_article_selection_id
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :stock_article_selections
|
||||
drop_table :stock_article_selections_stock_articles
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue