Unverified Commit 6e73b208 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add comments fixtures for development


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ecae936d
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment