denys281

Untitled

Nov 8th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.60 KB | None | 0 0
  1. Category:
  2.   actAs:
  3.     Timestampable: ~
  4.     Sluggable:
  5.       unique: true
  6.       canUpdate: true
  7.       fields: [name]
  8.       builder: [myTools, StripText]
  9.     I18n:
  10.       fields: [name]
  11.   columns:
  12.       name:   { type: string(255), notnull: true }
  13.  
  14. Subcategory:
  15.   actAs:
  16.     Timestampable: ~
  17.     Sluggable:
  18.       unique: true
  19.       canUpdate: true
  20.       fields: [name]
  21.       builder: [myTools, StripText]
  22.     I18n:
  23.       fields: [name]
  24.   columns:
  25.     category_id:  { type: integer() }
  26.     name:   { type: string(255), notnull: true }
  27.   relations:
  28.     Category: { onDelete: CASCADE,local: category_id , foreign: id }
Advertisement
Add Comment
Please, Sign In to add comment