Sha256: f1b0264b3b67a52fbc3021b351d304ab2b64041c9ba87c61ccb4d3fbabb9be78

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

module RestPack::Account::Service::Models
  class Account < ActiveRecord::Base
    self.table_name = :restpack_accounts

    attr_accessible :application_id, :created_by, :name
    validates_presence_of :application_id, :created_by, :name

    validates :name, :length => { :maximum => 256 }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restpack_account_service-0.0.4 lib/restpack_account_service/models/account.rb
restpack_account_service-0.0.3 lib/restpack_account_service/models/account.rb