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 / 20110902000000_create_changeset_parents.rb @ 1298:4f746d8966dd

History | View | Annotate | Download (525 Bytes)

1
class CreateChangesetParents < ActiveRecord::Migration
2
  def self.up
3
    create_table :changeset_parents, :id => false do |t|
4
      t.column :changeset_id, :integer, :null => false
5
      t.column :parent_id, :integer, :null => false
6
    end
7
    add_index :changeset_parents, [:changeset_id], :unique => false, :name => :changeset_parents_changeset_ids
8
    add_index :changeset_parents, [:parent_id], :unique => false, :name => :changeset_parents_parent_ids
9
  end
10

    
11
  def self.down
12
     drop_table :changeset_parents
13
  end
14
end