sharedlists/db/migrate/003_add_list_to_article.rb

12 lines
252 B
Ruby
Raw Normal View History

2021-12-18 11:39:41 +01:00
class AddListToArticle < ActiveRecord::Migration
def self.up
add_column :articles, :list, :string
add_column :suppliers, :lists, :string
end
def self.down
remove_column :articles, :list
remove_column :suppliers, :lists
end
end