add migration and adapt fixture and factories
This commit is contained in:
parent
c28731a1ea
commit
ace6551880
4 changed files with 24 additions and 6 deletions
6
db/migrate/20230220214408_add_price_per_to_articles.rb
Normal file
6
db/migrate/20230220214408_add_price_per_to_articles.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue