Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-02-14 20:11:31 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-02-16 01:55:07 +0300
commit179ae4ab5b5584f62234b7321aa5c7a1d7ae484d (patch)
treecff023c44d4f81b0849def0a64066d6f83ef3344 /db
parent1452729304393978ec93b712130dff6687db01b9 (diff)
Seed abuse reports
``` rake db:seed_fu FILTER=abuse_reports ``` Thanks to @stanhu, https://gitlab.com/gitlab-org/gitlab-ce/issues/28059#note_23325328
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/18_abuse_reports.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/fixtures/development/18_abuse_reports.rb b/db/fixtures/development/18_abuse_reports.rb
new file mode 100644
index 00000000000..8618d10387a
--- /dev/null
+++ b/db/fixtures/development/18_abuse_reports.rb
@@ -0,0 +1,5 @@
+require 'factory_girl_rails'
+
+(AbuseReport.default_per_page + 3).times do
+ FactoryGirl.create(:abuse_report)
+end