Skip to content

Instantly share code, notes, and snippets.

@henrikbjorn
Created March 15, 2009 16:34
Show Gist options
  • Save henrikbjorn/79468 to your computer and use it in GitHub Desktop.
Save henrikbjorn/79468 to your computer and use it in GitHub Desktop.
Debate:
actAs:
Versionable:
auditLog: true
versionColumn: version
className: %CLASS%Version
Timestampable:
Sluggable:
fields: [title]
unique: true
SoftDelete:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id: integer(4)
debate_category_id: integer
comment_count: integer
version: integer
slug: string(255)
title: string(255)
content: clob
created_at: timestamp
updated_at: timestamp
relations:
User:
class: sfGuardUser
foreignType: one
Category:
class: DebateCategory
foreignType: one
DebateCategory:
foreignAlias: Debates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment