comparison db/migrate/.svn/text-base/035_create_changes.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 CreateChanges < ActiveRecord::Migration
2 def self.up
3 create_table :changes do |t|
4 t.column :changeset_id, :integer, :null => false
5 t.column :action, :string, :limit => 1, :default => "", :null => false
6 t.column :path, :string, :default => "", :null => false
7 t.column :from_path, :string
8 t.column :from_revision, :integer
9 end
10 add_index :changes, [:changeset_id], :name => :changesets_changeset_id
11 end
12
13 def self.down
14 drop_table :changes
15 end
16 end