Changeset 183 for trunk/examples/blog.rb
- Timestamp:
- 01/22/2007 20:45:51 (22 months ago)
- Files:
-
- 1 modified
-
trunk/examples/blog.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/blog.rb
r182 r183 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 20 create_table :blog_posts, :force => true do |t| 21 t.column :id, :integer, :null => false, :primary_key => true, :auto_increment => true 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 26 create_table :blog_users, :force => true do |t| 27 t.column :id, :integer, :null => false, :primary_key => true, :auto_increment => true 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 31 create_table :blog_comments, :force => true do |t| 32 t.column :id, :integer, :null => false, :primary_key => true, :auto_increment => true 33 33 t.column :post_id, :integer, :null => false 34 34 t.column :username, :string
