Skip to content

Instantly share code, notes, and snippets.

@jtadeulopes
Created June 12, 2009 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtadeulopes/128668 to your computer and use it in GitHub Desktop.
Save jtadeulopes/128668 to your computer and use it in GitHub Desktop.
# == Schema Information
#
# Table name: categories
#
# id :integer(4) not null, primary key
# name :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
#
class Category < ActiveRecord::Base
validates_presence_of :name
validates_presence_of :description
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment