annotate .svn/pristine/10/10ba4b3e5a7a93b2f988725561d5c82a7bd53485.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class CreateComments < ActiveRecord::Migration
Chris@909 2 def self.up
Chris@909 3 create_table :comments do |t|
Chris@909 4 t.column :commented_type, :string, :limit => 30, :default => "", :null => false
Chris@909 5 t.column :commented_id, :integer, :default => 0, :null => false
Chris@909 6 t.column :author_id, :integer, :default => 0, :null => false
Chris@909 7 t.column :comments, :text
Chris@909 8 t.column :created_on, :datetime, :null => false
Chris@909 9 t.column :updated_on, :datetime, :null => false
Chris@909 10 end
Chris@909 11 end
Chris@909 12
Chris@909 13 def self.down
Chris@909 14 drop_table :comments
Chris@909 15 end
Chris@909 16 end