Sha256: b7f59843d68b7a0d42bbb68b0e4dad4cd1dd6e1543f8de34a704b7d79eda87c5

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

module InvoiceBar
  class Currency < ActiveRecord::Base
    attr_accessible :name, :symbol, :priority

    validates :name, presence: true, uniqueness: true
    validates :symbol, presence: true, uniqueness: true, length: { maximum: 3 }
    validates :priority, presence: true

    has_many :accounts
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
invoice_bar-0.0.11 app/models/invoice_bar/currency.rb
invoice_bar-0.0.10 app/models/invoice_bar/currency.rb
invoice_bar-0.0.9 app/models/invoice_bar/currency.rb
invoice_bar-0.0.8 app/models/invoice_bar/currency.rb
invoice_bar-0.0.7 app/models/invoice_bar/currency.rb