diff --git a/db/migrate/20110312133121_create_containers.rb b/db/migrate/20110312133121_create_containers.rb index a3ca2af40..0bba8db0b 100644 --- a/db/migrate/20110312133121_create_containers.rb +++ b/db/migrate/20110312133121_create_containers.rb @@ -3,7 +3,7 @@ class CreateContainers < ActiveRecord::Migration create_table :containers do |t| t.string :name, null: false t.integer :project_id, null: false - t.integer :owner_id, null: false + t.integer :owner_id, null: false, references: nil t.timestamps end diff --git a/db/migrate/20110405161609_create_build_lists.rb b/db/migrate/20110405161609_create_build_lists.rb index c434f9c2c..9a0482581 100644 --- a/db/migrate/20110405161609_create_build_lists.rb +++ b/db/migrate/20110405161609_create_build_lists.rb @@ -1,7 +1,7 @@ class CreateBuildLists < ActiveRecord::Migration def self.up create_table :build_lists, force: true do |t| - t.integer :bs_id + t.integer :bs_id, references: nil t.string :container_path t.integer :status diff --git a/db/migrate/20111012223944_create_groups.rb b/db/migrate/20111012223944_create_groups.rb index c5b3522ea..b44be841a 100644 --- a/db/migrate/20111012223944_create_groups.rb +++ b/db/migrate/20111012223944_create_groups.rb @@ -2,7 +2,7 @@ class CreateGroups < ActiveRecord::Migration def self.up create_table :groups do |t| t.string :name - t.integer :owner_id + t.integer :owner_id, references: nil t.timestamps end diff --git a/db/migrate/20111029150934_create_auto_build_lists.rb b/db/migrate/20111029150934_create_auto_build_lists.rb index 4e476f025..b6e09acf5 100644 --- a/db/migrate/20111029150934_create_auto_build_lists.rb +++ b/db/migrate/20111029150934_create_auto_build_lists.rb @@ -3,8 +3,8 @@ class CreateAutoBuildLists < ActiveRecord::Migration create_table :auto_build_lists do |t| t.integer :project_id t.integer :arch_id - t.integer :pl_id - t.integer :bpl_id + t.integer :pl_id, references: nil + t.integer :bpl_id, references: nil t.timestamps end end diff --git a/db/migrate/20111216134039_create_issues.rb b/db/migrate/20111216134039_create_issues.rb index 2269daa1b..88848531e 100644 --- a/db/migrate/20111216134039_create_issues.rb +++ b/db/migrate/20111216134039_create_issues.rb @@ -1,7 +1,7 @@ class CreateIssues < ActiveRecord::Migration def self.up create_table :issues do |t| - t.integer :serial_id + t.integer :serial_id, references: nil t.integer :project_id t.integer :user_id t.string :title diff --git a/db/migrate/20111216140849_create_comments.rb b/db/migrate/20111216140849_create_comments.rb index d05b53eb7..541844adb 100644 --- a/db/migrate/20111216140849_create_comments.rb +++ b/db/migrate/20111216140849_create_comments.rb @@ -1,7 +1,7 @@ class CreateComments < ActiveRecord::Migration def self.up create_table :comments do |t| - t.integer :commentable_id + t.integer :commentable_id, references: nil t.string :commentable_type t.integer :user_id t.text :body diff --git a/db/migrate/20111226141947_create_subscribes.rb b/db/migrate/20111226141947_create_subscribes.rb index 631e09f09..da0893c0d 100644 --- a/db/migrate/20111226141947_create_subscribes.rb +++ b/db/migrate/20111226141947_create_subscribes.rb @@ -1,7 +1,7 @@ class CreateSubscribes < ActiveRecord::Migration def self.up create_table :subscribes do |t| - t.integer :subscribeable_id + t.integer :subscribeable_id, references: nil t.string :subscribeable_type t.integer :user_id t.timestamps diff --git a/db/migrate/20120329181830_remove_auto_build_list.rb b/db/migrate/20120329181830_remove_auto_build_list.rb index 58f28c300..6c8202f5c 100644 --- a/db/migrate/20120329181830_remove_auto_build_list.rb +++ b/db/migrate/20120329181830_remove_auto_build_list.rb @@ -7,8 +7,8 @@ class RemoveAutoBuildList < ActiveRecord::Migration create_table :auto_build_lists, force: true do |t| t.integer "project_id" t.integer "arch_id" - t.integer "pl_id" - t.integer "bpl_id" + t.integer "pl_id", references: nil + t.integer "bpl_id", references: nil t.datetime "created_at" t.datetime "updated_at" end diff --git a/db/migrate/20120330201229_remove_containers_and_rpms.rb b/db/migrate/20120330201229_remove_containers_and_rpms.rb index a3a1874d6..87cecb297 100644 --- a/db/migrate/20120330201229_remove_containers_and_rpms.rb +++ b/db/migrate/20120330201229_remove_containers_and_rpms.rb @@ -8,7 +8,7 @@ class RemoveContainersAndRpms < ActiveRecord::Migration create_table "containers" do |t| t.string "name", null: false t.integer "project_id", null: false - t.integer "owner_id", null: false + t.integer "owner_id", null: false, references: nil t.datetime "created_at" t.datetime "updated_at" end diff --git a/db/migrate/20120412173938_create_pull_requests.rb b/db/migrate/20120412173938_create_pull_requests.rb index 7f2ae0a68..c3e37704e 100644 --- a/db/migrate/20120412173938_create_pull_requests.rb +++ b/db/migrate/20120412173938_create_pull_requests.rb @@ -2,8 +2,8 @@ class CreatePullRequests < ActiveRecord::Migration def change create_table :pull_requests do |t| t.integer :issue_id, null: false - t.integer :base_project_id, null: false - t.integer :head_project_id, null: false + t.integer :base_project_id, null: false, references: nil + t.integer :head_project_id, null: false, references: nil t.string :base_ref, null: false t.string :head_ref, null: false end diff --git a/db/migrate/20120710134434_create_key_pairs.rb b/db/migrate/20120710134434_create_key_pairs.rb index 50c41b1b0..f27d45a03 100644 --- a/db/migrate/20120710134434_create_key_pairs.rb +++ b/db/migrate/20120710134434_create_key_pairs.rb @@ -3,7 +3,7 @@ class CreateKeyPairs < ActiveRecord::Migration create_table :key_pairs do |t| t.integer :repository_id t.integer :user_id - t.integer :key_id + t.integer :key_id, references: nil t.string :public t.timestamps end diff --git a/db/migrate/20130214101404_create_project_tags_table.rb b/db/migrate/20130214101404_create_project_tags_table.rb index 9c10a7c26..d78365bd2 100644 --- a/db/migrate/20130214101404_create_project_tags_table.rb +++ b/db/migrate/20130214101404_create_project_tags_table.rb @@ -5,7 +5,7 @@ class CreateProjectTagsTable < ActiveRecord::Migration t.string :commit_id t.string :sha1 t.string :tag_name - t.integer :format_id + t.integer :format_id, references: nil t.timestamps end end diff --git a/db/migrate/20130624095928_create_tokens.rb b/db/migrate/20130624095928_create_tokens.rb index 52a9e0ee2..55747d408 100644 --- a/db/migrate/20130624095928_create_tokens.rb +++ b/db/migrate/20130624095928_create_tokens.rb @@ -2,10 +2,10 @@ class CreateTokens < ActiveRecord::Migration def change create_table :tokens do |t| - t.integer :subject_id, null: false + t.integer :subject_id, null: false, references: nil t.string :subject_type, null: false - t.integer :creator_id, null: false - t.integer :updater_id + t.integer :creator_id, null: false, references: nil + t.integer :updater_id, references: nil t.string :status, default: 'active' t.text :description t.string :authentication_token, null: false