To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 035_create_changes.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (503 Bytes)
| 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
|