Fixed the relations in master, #120

Some relationships overwritted others, so they had to be redefined.
#120, edited code style
Merge pull request #122 from DevYah/DB_#120_repair_master_relations

Fix conflicting relation names in Idea, User, and Comment.
Pre-commit checks: remove migrations check.
Pre-commit: fix bug with calling `which`

Apparently output redirection messes with the exit status.
Merge pull request #124 from DevYah/C1_mnzaki_commit_hooks

Fix checks.
Merge branch 'master' into C1_AminaZoheir_#73_Notifications_migrations

Conflicts:
	Idearator/app/models/user.rb
Merge branch 'master' into C1_AminaZoheir_#73_Notifications_migrations