1 class CreateCommitAncestors < ActiveRecord::Migration
3 create_table :commit_ancestors do |t|
4 t.string :repository_name
5 t.string :descendant, :null => false
6 t.string :ancestor, :null => false
7 t.boolean :is, :default => false, :null => false
11 add_index :commit_ancestors, [:descendant, :ancestor], :unique => true