annotate db/migrate/20110902000000_create_changeset_parents.rb @ 1524:82fac3dcf466
redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 11 Sep 2014 10:24:38 +0100 |
parents |
cbb26bc654de |
children |
|
rev |
line source |
Chris@909
|
1 class CreateChangesetParents < ActiveRecord::Migration
|
Chris@909
|
2 def self.up
|
Chris@909
|
3 create_table :changeset_parents, :id => false do |t|
|
Chris@909
|
4 t.column :changeset_id, :integer, :null => false
|
Chris@909
|
5 t.column :parent_id, :integer, :null => false
|
Chris@909
|
6 end
|
Chris@909
|
7 add_index :changeset_parents, [:changeset_id], :unique => false, :name => :changeset_parents_changeset_ids
|
Chris@909
|
8 add_index :changeset_parents, [:parent_id], :unique => false, :name => :changeset_parents_parent_ids
|
Chris@909
|
9 end
|
Chris@909
|
10
|
Chris@909
|
11 def self.down
|
Chris@909
|
12 drop_table :changeset_parents
|
Chris@909
|
13 end
|
Chris@909
|
14 end
|