Mercurial > hg > soundsoftware-site
comparison db/migrate/.svn/text-base/034_create_changesets.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 CreateChangesets < ActiveRecord::Migration | |
2 def self.up | |
3 create_table :changesets do |t| | |
4 t.column :repository_id, :integer, :null => false | |
5 t.column :revision, :integer, :null => false | |
6 t.column :committer, :string, :limit => 30 | |
7 t.column :committed_on, :datetime, :null => false | |
8 t.column :comments, :text | |
9 end | |
10 add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev | |
11 end | |
12 | |
13 def self.down | |
14 drop_table :changesets | |
15 end | |
16 end |