search for: tepee_pag

Displaying 1 result from an estimated 1 matches for "tepee_pag".

Did you mean: tepee_pages
2006 Aug 13
3
+ migrations in camping
...le file, which create the database tables and manage them without hassle. These days it''s common to see in a Camping app: module Tepee::Models def self.schema(&block) @@schema = block if block_given? @@schema end end Tepee::Models.schema do create_table :tepee_pages, :force => true do |t| t.column :title, :string, :limit => 255 t.column :body, :text end Tepee::Models::Page.create_versioned_table end The `schema` block describes how to create the tables that Tepee needs. Yeah, this is in the Tepee sample wiki that comes with Camp...