1 2 3 4 5 6 7 8 9 10
class InviteCode < CouchRest::Model::Base use_database 'invite_codes' property :invite_code, String timestamps! design do view :by_invite_code end end