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 / .svn / pristine / c7 / c7478ec9fe0088baa4bd4e0b03aab480956ab36b.svn-base @ 1297:0a574315af3e

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