To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 89 / 89879d5f63daa96be062efc907c338deadd682c1.svn-base @ 1297:0a574315af3e
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 |