A platform for community discussion. Free, open, simple.
DEV: Include foreign keys in model annotations
David Taylor750c12570793
diff --git a/app/models/user_profile.rb b/app/models/user_profile.rbindex 13ab947ca04..a6453dec4ed 100644--- a/app/models/user_profile.rb+++ b/app/models/user_profile.rb@@ -169,3 +169,8 @@ end# index_user_profiles_on_card_background (card_background)# index_user_profiles_on_profile_background (profile_background)#+# Foreign Keys+#+# fk_rails_... (card_background_upload_id => uploads.id)+# fk_rails_... (profile_background_upload_id => uploads.id)+#diff --git a/lib/tasks/auto_annotate_models.rake b/lib/tasks/auto_annotate_models.rakeindex 95f3090d1bc..2fca50edfb9 100644--- a/lib/tasks/auto_annotate_models.rake+++ b/lib/tasks/auto_annotate_models.rake@@ -31,7 +31,8 @@ if (Rails.env.development? || Rails.env.test?)'format_markdown' => "false",'sort' => "false",'force' => "false",- 'trace' => "false"+ 'trace' => "false",+ 'show_foreign_keys' => "true")end