comparison db/migrate/.svn/text-base/010_create_comments.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 class CreateComments < ActiveRecord::Migration
2 def self.up
3 create_table :comments do |t|
4 t.column :commented_type, :string, :limit => 30, :default => "", :null => false
5 t.column :commented_id, :integer, :default => 0, :null => false
6 t.column :author_id, :integer, :default => 0, :null => false
7 t.column :comments, :text
8 t.column :created_on, :datetime, :null => false
9 t.column :updated_on, :datetime, :null => false
10 end
11 end
12
13 def self.down
14 drop_table :comments
15 end
16 end