Commit 95a8c051 authored by Stan Hu's avatar Stan Hu

Use add_timestamps_with_timezone

parent 9dd785b6
......@@ -7,13 +7,13 @@ class CreateGeoRepositoryDeletedEvents < ActiveRecord::Migration
create_table :geo_repository_deleted_events, id: :bigserial do |t|
# If a project is deleted, we need to retain this entry
t.references :project, index: true, foreign_key: false, null: false
t.datetime :created_at, null: false
t.text :repository_storage_path, null: false
t.text :deleted_path, null: false
t.text :deleted_wiki_path
t.text :deleted_project_name, null: false
end
add_timestamps_with_timezone :geo_repository_deleted_events
add_column :geo_event_log, :repository_deleted_event_id, :integer, limit: 8
end
end
......@@ -609,11 +609,12 @@ ActiveRecord::Schema.define(version: 20170614061551) do
create_table "geo_repository_deleted_events", id: :bigserial, force: :cascade do |t|
t.integer "project_id", null: false
t.datetime "created_at", null: false
t.text "repository_storage_path", null: false
t.text "deleted_path", null: false
t.text "deleted_wiki_path"
t.text "deleted_project_name", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "geo_repository_deleted_events", ["project_id"], name: "index_geo_repository_deleted_events_on_project_id", using: :btree
......
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