Changeset 187
- Timestamp:
- 03/22/2007 23:30:54 (20 months ago)
- Location:
- trunk/examples
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/blog.rb
r185 r187 18 18 class CreateTheBasics < V 1.0 19 19 def self.up 20 create_table :blog_posts , :force => true, :id => falsedo |t|21 t.column :id, :integer, :null => false , :primary_key => true, :auto_increment => true20 create_table :blog_posts do |t| 21 t.column :id, :integer, :null => false 22 22 t.column :user_id, :integer, :null => false 23 23 t.column :title, :string, :limit => 255 24 24 t.column :body, :text 25 25 end 26 create_table :blog_users , :force => true, :id => falsedo |t|27 t.column :id, :integer, :null => false , :primary_key => true, :auto_increment => true26 create_table :blog_users do |t| 27 t.column :id, :integer, :null => false 28 28 t.column :username, :string 29 29 t.column :password, :string 30 30 end 31 create_table :blog_comments , :force => true, :id => falsedo |t|32 t.column :id, :integer, :null => false , :primary_key => true, :auto_increment => true31 create_table :blog_comments do |t| 32 t.column :id, :integer, :null => false 33 33 t.column :post_id, :integer, :null => false 34 34 t.column :username, :string -
trunk/examples/campsh.rb
r184 r187 35 35 class CreateBasics < V 1.0 36 36 def self.up 37 create_table :campsh_commands , :force => true, :id => falsedo |t|38 t.column :id, :integer, :null => false , :primary_key => true, :auto_increment => true37 create_table :campsh_commands do |t| 38 t.column :id, :integer, :null => false 39 39 t.column :author, :string, :limit => 40 40 40 t.column :name, :string, :limit => 255 -
trunk/examples/tepee.rb
r156 r187 16 16 class CreateTepee < V 1.0 17 17 def self.up 18 create_table :tepee_pages , :force => truedo |t|18 create_table :tepee_pages do |t| 19 19 t.column :title, :string, :limit => 255 20 20 t.column :body, :text
