Reorder database columns on create geo_repository_updated_events

parent cc1c6d10
......@@ -6,8 +6,8 @@ class CreateGeoRepositoryUpdatedEvents < ActiveRecord::Migration
t.datetime :created_at, null: false
t.integer :branches_affected, null: false
t.integer :tags_affected, null: false
t.integer :source, limit: 2, index: true, null: false
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
t.integer :source, limit: 2, index: true, null: false
t.boolean :new_branch, default: false, null: false
t.boolean :remove_branch, default: false, null: false
t.text :ref
......
......@@ -532,8 +532,8 @@ ActiveRecord::Schema.define(version: 20170602003304) do
t.datetime "created_at", null: false
t.integer "branches_affected", null: false
t.integer "tags_affected", null: false
t.integer "source", limit: 2, null: false
t.integer "project_id", null: false
t.integer "source", limit: 2, null: false
t.boolean "new_branch", default: false, null: false
t.boolean "remove_branch", default: false, null: false
t.text "ref"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment