2021-12-18 23:52:05 +01:00
|
|
|
class RemoveArticleListsFromSuppliers < ActiveRecord::Migration[4.2]
|
2021-12-18 11:39:41 +01:00
|
|
|
def self.up
|
|
|
|
remove_column :suppliers, :lists
|
|
|
|
remove_column :articles, :list
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
add_column :articles, :list, :string
|
|
|
|
add_column :suppliers, :lists, :string
|
|
|
|
end
|
|
|
|
end
|