bdc9322450
We can't properly use foreign keys on columns that are configured for polymorphic associations which has disadvantages related to data integrity and storage. Given we only use time tracking for Issues and Merge Requests we're moving to the usage of regular associations.
9 lines
163 B
Ruby
9 lines
163 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :timelog do
|
|
time_spent 3600
|
|
user
|
|
issue
|
|
end
|
|
end
|