Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created January 22, 2009 17:40
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 chrislerum/50632 to your computer and use it in GitHub Desktop.
Save chrislerum/50632 to your computer and use it in GitHub Desktop.
class PokerRoom < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
has_many :poker_room_bonuses
has_one :poker_room_image, :dependent => :destroy
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment