foodsoft/db/migrate/20230220214408_add_price_per_to_articles.rb

7 lines
189 B
Ruby
Raw Normal View History

class AddPricePerToArticles < ActiveRecord::Migration[7.0]
def change
add_column :articles, :price_per, :float, default: 0.0
add_column :articles, :unit_symbol, :string
end
end