diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-15 10:23:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-15 10:23:48 +0200 |
commit | 6e73b208a9f69c68bf8575d902d6662eb3db0662 (patch) | |
tree | 342bf57f1419fbb46a68d6f8d260021d8e114fdb /db | |
parent | ecae936d344b7d29f1898f81ac283d444c086f0d (diff) | |
download | gitlab-ce-6e73b208a9f69c68bf8575d902d6662eb3db0662.tar.gz |
Add comments fixtures for development
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/development/13_comments.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/fixtures/development/13_comments.rb b/db/fixtures/development/13_comments.rb new file mode 100644 index 00000000000..b133ec3146d --- /dev/null +++ b/db/fixtures/development/13_comments.rb @@ -0,0 +1,13 @@ +ActiveRecord::Base.observers.disable :all + +Issue.all.limit(10).each_with_index do |issue, i| + 5.times do + Note.seed(:id, [{ + project_id: issue.project.id, + author_id: issue.project.team.users.sample.id, + note: Faker::Lorem.sentence, + noteable_id: issue.id, + noteable_type: 'Issue' + }]) + end +end |