Sha256: b15bcedc2ab254fc1916a48349e97d57261ec4a946edcf8ed59358c40d9063b5

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents


class Iro::Option
  include Mongoid::Document
  include Mongoid::Timestamps
  store_in collection: 'iro_options'

  # STATUS_ACTIVE   = 'active'
  # STATUS_INACTIVE = 'inactive'
  # STATUSES        = [ 'active', 'inactive' ]
  # def self.active
  #   where( status: STATUS_ACTIVE )
  # end

  # field :ticker
  # validates :ticker, uniqueness: true, presence: true

  field :symbol
  validates :symbol, uniqueness: true, presence: true


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.8 app/models/iro/option.rb