Here

Ruby code posted
created at 19 Jun 23:19

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# == Schema Information
# Schema version: 20080506190612
#
# Table name: formats
#
#  id   :integer(11)     not null, primary key
#  name :string(255)
#

class Format < ActiveRecord::Base
  has_many :categories, :order => "`categories`.`name`"
  #has_many :lists

  validates_presence_of :name
end
311 Bytes in 7 ms with coderay