Changeset 187 for trunk/examples/blog.rb
- Timestamp:
- 03/22/2007 23:30:54 (19 months ago)
- Files:
-
- 1 modified
-
trunk/examples/blog.rb (modified) (1 diff)
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
