Repack migration correctly
This commit is contained in:
parent
91f8e734fe
commit
ea023138bf
|
@ -5,11 +5,11 @@ class CreateCiBuildTraceSections < ActiveRecord::Migration
|
||||||
|
|
||||||
def change
|
def change
|
||||||
create_table :ci_build_trace_sections do |t|
|
create_table :ci_build_trace_sections do |t|
|
||||||
|
t.references :project, null: false, index: true, foreign_key: { on_delete: :cascade }
|
||||||
t.datetime_with_timezone :date_start, null: false
|
t.datetime_with_timezone :date_start, null: false
|
||||||
t.datetime_with_timezone :date_end, null: false
|
t.datetime_with_timezone :date_end, null: false
|
||||||
t.integer :byte_start, limit: 8, null: false
|
t.integer :byte_start, limit: 8, null: false
|
||||||
t.integer :byte_end, limit: 8, null: false
|
t.integer :byte_end, limit: 8, null: false
|
||||||
t.references :project, null: false, index: true, foreign_key: { on_delete: :cascade }
|
|
||||||
t.integer :build_id, null: false
|
t.integer :build_id, null: false
|
||||||
t.integer :section_name_id, null: false
|
t.integer :section_name_id, null: false
|
||||||
end
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20171004121444) do
|
ActiveRecord::Schema.define(version: 20171006091000) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -215,11 +215,11 @@ ActiveRecord::Schema.define(version: 20171004121444) do
|
||||||
add_index "ci_build_trace_section_names", ["project_id", "name"], name: "index_ci_build_trace_section_names_on_project_id_and_name", unique: true, using: :btree
|
add_index "ci_build_trace_section_names", ["project_id", "name"], name: "index_ci_build_trace_section_names_on_project_id_and_name", unique: true, using: :btree
|
||||||
|
|
||||||
create_table "ci_build_trace_sections", force: :cascade do |t|
|
create_table "ci_build_trace_sections", force: :cascade do |t|
|
||||||
|
t.integer "project_id", null: false
|
||||||
t.datetime_with_timezone "date_start", null: false
|
t.datetime_with_timezone "date_start", null: false
|
||||||
t.datetime_with_timezone "date_end", null: false
|
t.datetime_with_timezone "date_end", null: false
|
||||||
t.integer "byte_start", limit: 8, null: false
|
t.integer "byte_start", limit: 8, null: false
|
||||||
t.integer "byte_end", limit: 8, null: false
|
t.integer "byte_end", limit: 8, null: false
|
||||||
t.integer "project_id", null: false
|
|
||||||
t.integer "build_id", null: false
|
t.integer "build_id", null: false
|
||||||
t.integer "section_name_id", null: false
|
t.integer "section_name_id", null: false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue