app/models/iro/purse.rb in iron_warbler-2.0.7.20 vs app/models/iro/purse.rb in iron_warbler-2.0.7.21
- old
+ new
@@ -8,9 +8,13 @@
validates :slug, presence: true, uniqueness: true
index({ slug: -1 }, { unique: true })
has_many :positions, class_name: 'Iro::Position', inverse_of: :purse
+ field :unit, type: :integer
+ field :height, type: :integer
+ field :mark_every_n_usd, type: :float
+
def to_s
slug
end
end