summaryrefslogtreecommitdiff
path: root/db/migrate/20160315135439_project_add_repository_check.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-13 17:07:12 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-13 17:07:12 +0200
commitbf31b4495e020ef5fa45b204d2494d8d3b4d1494 (patch)
tree99a27bc56e5f64c9f0178fb4642d3f49574718cc /db/migrate/20160315135439_project_add_repository_check.rb
parent0f602be99f99f1ae493478a8a28df2907cfa0082 (diff)
downloadgitlab-ce-bf31b4495e020ef5fa45b204d2494d8d3b4d1494.tar.gz
Schema improvements suggested by Yorick
Diffstat (limited to 'db/migrate/20160315135439_project_add_repository_check.rb')
-rw-r--r--db/migrate/20160315135439_project_add_repository_check.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20160315135439_project_add_repository_check.rb b/db/migrate/20160315135439_project_add_repository_check.rb
index 5a0859a30b2..8687d5d6296 100644
--- a/db/migrate/20160315135439_project_add_repository_check.rb
+++ b/db/migrate/20160315135439_project_add_repository_check.rb
@@ -1,6 +1,8 @@
class ProjectAddRepositoryCheck < ActiveRecord::Migration
def change
- add_column :projects, :last_repository_check_failed, :boolean, default: false
+ add_column :projects, :last_repository_check_failed, :boolean
+ add_index :projects, :last_repository_check_failed
+
add_column :projects, :last_repository_check_at, :datetime
end
end