diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-01-25 19:16:09 -0600 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-02-07 10:41:44 -0500 |
commit | bdc932245088b3a7ae5d633e81175352d5599083 (patch) | |
tree | f98c8d57c6f7d1f9e1d6a2a2eda8835fd9c2f0be /spec/factories | |
parent | 8abdabdb3ad9e4b87893f24042de077cd4a7d791 (diff) | |
download | gitlab-ce-bdc932245088b3a7ae5d633e81175352d5599083.tar.gz |
Use normal associations instead of polymorphic.
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.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/timelogs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/timelogs.rb b/spec/factories/timelogs.rb index 12fc4ec4486..6f1545418eb 100644 --- a/spec/factories/timelogs.rb +++ b/spec/factories/timelogs.rb @@ -4,6 +4,6 @@ FactoryGirl.define do factory :timelog do time_spent 3600 user - association :trackable, factory: :issue + issue end end |