added some validations to item so that we don't get garbbage
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class Item < ActiveRecord::Base
|
||||
belongs_to :unit
|
||||
has_many :multi_media_descriptions
|
||||
|
||||
validates_presence_of :name, :description, :list_price, :current_input_price, :tags, :unit_id, :code
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user