Project

General

Profile

Defect #10537 » 20120324000000_add_missing_primary_keys.rb

M T, 2012-03-24 03:13

 
1
class AddMissingPrimaryKeys < ActiveRecord::Migration
2
  def self.up
3
    add_column :custom_fields_trackers, :id, :primary_key
4
    add_column :custom_fields_projects, :id, :primary_key
5
    add_column :groups_users, :id, :primary_key
6
    add_column :projects_trackers, :id, :primary_key
7
   end
8

    
9
  def self.down
10
    remove_column :custom_fields_trackers, :id
11
    remove_column :custom_fields_projects, :id
12
    remove_column :groups_users, :id
13
    remove_column :projects_trackers, :id
14
  end
15
end
(1-1/3)