Add last_repository_updated_at to projects

This commit is contained in:
Douglas Barbosa Alexandre 2017-05-03 22:36:02 -03:00
parent 7a66cd688a
commit cdcbe99aa7
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
class AddLastRepositoryUpdatedAtToProjects < ActiveRecord::Migration
DOWNTIME = false
def change
add_column :projects, :last_repository_updated_at, :datetime
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170502091007) do
ActiveRecord::Schema.define(version: 20170503004125) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -971,6 +971,7 @@ ActiveRecord::Schema.define(version: 20170502091007) do
t.boolean "printing_merge_request_link_enabled", default: true, null: false
t.string "import_jid"
t.integer "cached_markdown_version"
t.datetime "last_repository_updated_at"
end
add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree