To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 034_create_changesets.rb @ 441:cbce1fd3b1b7

History | View | Annotate | Download (515 Bytes)

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