Created
June 12, 2009 14:44
-
-
Save jtadeulopes/128668 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == 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