summaryrefslogtreecommitdiff
path: root/db/migrate/20150717130904_add_commits_count_to_project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20150717130904_add_commits_count_to_project.rb')
-rw-r--r--db/migrate/20150717130904_add_commits_count_to_project.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150717130904_add_commits_count_to_project.rb b/db/migrate/20150717130904_add_commits_count_to_project.rb
new file mode 100644
index 00000000000..9b46daa5933
--- /dev/null
+++ b/db/migrate/20150717130904_add_commits_count_to_project.rb
@@ -0,0 +1,5 @@
+class AddCommitsCountToProject < ActiveRecord::Migration
+ def change
+ add_column :projects, :commit_count, :integer, default: 0
+ end
+end