Sha256: 10b0b1b6d3e9ac51cb5b4b987751909f98b62413aae9ea6d519e716ac028e473

Contents?: true

Size: 220 Bytes

Versions: 4

Compression:

Stored size: 220 Bytes

Contents

class Company < ActiveRecord::Base
  has_one :mascot
  self.sequence_name = :companies_nonstd_seq

  validates_presence_of :name
  def validate
    errors.add('rating', 'rating should not be 2') if rating == 2
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
activejob-lock-0.0.2 rails/actionpack/test/fixtures/company.rb
activejob-lock-0.0.2 rails/actionview/test/fixtures/company.rb
activejob-lock-0.0.1 rails/actionpack/test/fixtures/company.rb
activejob-lock-0.0.1 rails/actionview/test/fixtures/company.rb