Add and inherit from ApplicationRecord to match Rails 5.0 style

This commit is contained in:
Patrick Gansterer 2019-01-13 07:05:54 +01:00
parent 8c6d48da86
commit abe847c0ee
34 changed files with 56 additions and 66 deletions

View file

@ -1,4 +1,4 @@
class StockChange < ActiveRecord::Base
class StockChange < ApplicationRecord
belongs_to :delivery
belongs_to :order
belongs_to :stock_taking
@ -16,4 +16,3 @@ class StockChange < ActiveRecord::Base
stock_article.update_quantity!
end
end