2020-08-07 01:14:14 +02:00
|
|
|
class AddSharedListsConnection < ActiveRecord::Migration[4.2]
|
2009-01-06 11:49:19 +01:00
|
|
|
def self.up
|
|
|
|
add_column :suppliers, :shared_supplier_id, :integer
|
2021-03-01 15:27:26 +01:00
|
|
|
add_column :articles, :manufacturer, :string
|
2009-01-06 11:49:19 +01:00
|
|
|
add_column :articles, :origin, :string
|
|
|
|
add_column :articles, :shared_updated_on, :timestamp
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :suppliers, :shared_supplier_id
|
|
|
|
remove_column :articles, :manufacturer
|
|
|
|
remove_column :articles, :origin
|
|
|
|
remove_column :articles, :shared_updated_on
|
|
|
|
end
|
|
|
|
end
|