[#76864570] data consistency report without database foreign keys

Squashed commit of the following:

commit 870d5bfdbaa28960e138f975d73001bb3e772a7d
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 15 11:33:14 2014 +0200

    consistency report without database foreign keys

commit 1901cd0eea46076ef65424d56b1ac9617452ff93
Merge: d7c469d 322512a
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 12 15:53:01 2014 +0200

    Merge branch 'master' into fs_consistency_report

    Conflicts:
    	Gemfile.lock
    	cider-ci/tasks/cucumber.yml
    	cider-ci/tasks/cucumber_scenarios.yml
    	cider-ci/tasks/cucumber_strict.yml
    	features/personas/dumps/minimal_seed.sql

commit d7c469d771e07d1e4625d0347eb95fc89e275a4d
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 12 15:41:39 2014 +0200

    consistency report with delete interactions

commit c1b3b32f5e36de140422140910dc976cb52b9519
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 11 12:57:18 2014 +0200

    upgrading to Rails 4.0.9

commit 57860fddff8090dc0f6a8627f15835cc775aac56
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Sep 10 15:27:36 2014 +0200

    catch exception on foreign keys migration

commit 24d231c420c5134a84bc7f9c340d8e252a9b85d0
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Sep 10 09:46:06 2014 +0200

    regenerating dumps

commit ec7eeea26cea1098dfe01089dd6819f0080176a9
Merge: 7c892aa 7cc679d
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Sep 10 09:44:46 2014 +0200

    Merge branch 'fix_3_trials' of github.com:zhdk/leihs into fs_consistency_report

    Conflicts:
    	cider-ci/tasks/cucumber.yml
    	cider-ci/tasks/cucumber_scenarios.yml
    	cider-ci/tasks/cucumber_strict.yml
    	features/personas/dumps/minimal_seed.sql

commit 7cc679d7a476dfbdf28a97360e2064a33929af08
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 17:49:41 2014 +0200

    inventarhelfer steps fix

commit 30f6295f05315cdecaf87fcabd85132ff338dd38
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 17:42:57 2014 +0200

    fix kalender.feature

commit 7c892aa0823a50b9553b2cc5883e7a597f98ae05
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 9 16:52:03 2014 +0200

    fix typo

commit 6c65a55f0b2c004d564798f93daafbea3aeea268
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 9 16:41:23 2014 +0200

    adapting rspec syntax

commit d2a8bf98e6d0d351eb3b97a56b46f6c846df1399
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 16:23:30 2014 +0200

    fix paket item inventory helfer test

commit 48431db85e7ab6573d9dd7d4df80083383230504
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 9 15:53:06 2014 +0200

    fix consistency interaction

commit 7aeb3e7b1458ac29634baf54450292ac1c4dfdbf
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 15:28:02 2014 +0200

    fix features/step_definitions/examples/kalendar_steps.rb

commit 6a306888dde6d1324d8f642c19781f8c3e7b62df
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 14:41:25 2014 +0200

    fix features/borrow/vorlagen.feature:45

commit 33a7f870dfe1eeab2516d17b44bb959ad80091af
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 12:01:11 2014 +0200

    fix features/examples/ausleihe.feature:79

commit 73f088874aa99ced2c59d328447da29fb44ae066
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 11:52:23 2014 +0200

    fix hand over add.feature

commit d588f2880068a190c8c90c62bd827533f56b3753
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 10:59:39 2014 +0200

    auto_trials: 2 inside of the generation script

commit 2b4b74ff41bb39842c2f986f43a42fe0face731d
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 9 10:59:18 2014 +0200

    regenerate scenario tasks with auto_trials: 2

commit 5ac466c05324333336e7380a37e6a600ce7ceea6
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 9 10:44:31 2014 +0200

    regenerating dumps

commit eebc88279882b7773f913df2f2f854b668f2c91e
Merge: 98ba646 7e275d4
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 9 10:42:33 2014 +0200

    merging master into fs_consistency_report

commit 98ba6464a083ebb8058bb7ce2122a85d96fdac5e
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 17:41:51 2014 +0200

    define inverse associations needed for consistency report

commit 53bc6963ba12067cb2065428caca6ef151b211f0
Merge: 5788ff0 b12c910
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 17:27:43 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit b12c910ca54dd75e0ab8aee99fb621da3d352df3
Merge: 5bed90b b18efd7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 17:23:42 2014 +0200

    Merge branch 'master' into making_CI_green

commit 5bed90b6c7123cf19e7cb077fdfff38e8a0a6474
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:59:01 2014 +0200

    [FIX CI]

commit b3c317821c5cb9bdfaf2f2b9bc1c3b2ba8f9f675
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:31:55 2014 +0200

    [FIX CI] @firefox tag

commit bcd1bd217b97400e69d728b3c8d52bf3a2bbff3a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:06:53 2014 +0200

    [BUGFIX] show timeline also for a software line

commit 5788ff04e32dd4a0ad14f52a53cde57a0f6d39c5
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 15:43:18 2014 +0200

    regenerating dumps

commit 16a3d22529f66c95e75bc39150a5dbcab0268d98
Merge: cfa9b15 c163057
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 15:40:08 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit c16305785ec27784347f5a6e057ca5f58dcf63aa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:39:10 2014 +0200

    change investment to Investition in gegenstand erstellen feature

commit cfa9b1586c212e87666f54ad361dabe73ff24bf7
Merge: 6efdda8 e2f4aa1
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 15:37:04 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit e2f4aa1a45a099bd5d16be2780dadb19e6b4fce3
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:55 2014 +0200

    [FIX TEST] availability checks in manage booking calendar

commit a07c318b2fcab2e1139fe12771d6e3088567f2af
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:27 2014 +0200

    travel in time in frontend when starting server with specific test dump

commit b97a7558c21ab2f4babb707a6aeb3003b56813b1
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:03 2014 +0200

    [BUGFIX] availability coffee withoutLines() consider soft overbooking

commit 6efdda8164e58656e260131abc298883dd82bdb2
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 8 12:16:02 2014 +0200

    [FIX CI] foreign keys cascading

commit e5f60a27955f53cb6b11b9c539dd15dc44c6b809
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 15:09:41 2014 +0200

    [FIX CI] timeout countdown

commit 4f4998f576ac8949abc88061f64fc2d14fb851fc
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 14:29:33 2014 +0200

    regenerated dumps

commit 35a3388d7ae69f21a61c276321ae772494c84af7
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 14:26:29 2014 +0200

    [FIX CI]

commit 6a774182b7d3d629b2dddddfac630ff46bb45531
Merge: 5cbea9a 5dfebc2
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 14:23:34 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit 5dfebc232d6456378e235fdb0ec34ffc4cf159bf
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 13:42:05 2014 +0200

    fix gegenstand features

commit 5cbea9aa8c22eda53ac1d5179d9e25f6d6092e56
Merge: e36c276 76333f5
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 12:39:22 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

    Conflicts:
    	features/personas/dumps/minimal_seed.sql

commit e36c2767ec50ea14f8051375de04f0c53bacbbc8
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 5 12:37:08 2014 +0200

    foreign keys with cascading

commit 76333f572e7996342996ab70af6883fc7f2c6bc7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 12:16:48 2014 +0200

    regenerate dumps

commit 1289b6adcace0ef7d57c3aba618cc2e3b4796a98
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 12:10:19 2014 +0200

    [FIX CI] item/package steps

commit 17ce5488a46358bc2c17bcb707e6cd9f11001a83
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:46 2014 +0200

    fix steps

commit b14410466ca56eea3ba99c913e055d117a5b43fb
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:33 2014 +0200

    regenerate dumps

commit ea7dafce769ff2922ef5efd3bbc022db7c9f08fe
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:12 2014 +0200

    fix visit / visit lines migrations

commit 5623320df2f2ad9931d48beca2e4389b2fc0167e
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 4 17:48:12 2014 +0200

    introducing sql foreign keys

commit 3d42dd64ce4fcf03efecf520c31820f4a5864591
Merge: 65dfca8 aa6190e
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 4 17:44:31 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit dd966c72da6b2baabfcffc0e7fbe6b4015b46f58
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 16:52:51 2014 +0200

    [BUGFIX] matches(x) instead of eq(x) in contract.rb

commit aa6190edea2985c4506135b6b4f9af6d937ffec8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:15:50 2014 +0200

    prepare dumps

commit a5c58b53a0c0185d3caf146657a3408b77097dae
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:13:46 2014 +0200

    [FIX CI] gegenstand_editiere.feature

commit c7deb1448f9dd9264e09259e5ce55aea68329b6a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:13:22 2014 +0200

    fix all owner_ids in fixtures

commit 109869f09f994204518449eade00a1f00ef020c2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 14:27:58 2014 +0200

    [FIX CI] ausleihe.feature

commit a98617ed7e82c1906140c0b9a224c32aaa62d2f2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 12:28:08 2014 +0200

    properly check for existence of deferred objects

commit ec07dd9ea634a60730d20070ec866e7166c2b8fa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:50:58 2014 +0200

    fix missing owner_id for a item in fixtures

commit 33df6eaa6bc8f0c7bca88ac1a02c3a70b166b01b
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:50:42 2014 +0200

    prepare personas dumps

commit 65819d8b9ac827e56141bde5855bde18f6f0e9f8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:46:13 2014 +0200

    should -> expect

commit b78fd4ed828f9c76eaf56043cbe853973ff1f0fa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 16:39:12 2014 +0200

    fix hand over travel time

commit 65dfca80d3b38560ff95c571af0ed7acbd8b1f32
Merge: ca542d8 e28ae1b
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Sep 3 12:40:39 2014 +0200

    Merge branch 'making_CI_green' of github.com:zhdk/leihs into fs_consistency_report

commit e28ae1b1af8a5f89fde414ccb5b73fe6f5346a48
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 12:27:13 2014 +0200

    add firefox tag to modell.feature test

commit aad3b2512c56a3a9b3514bc303446cbaff7a83ba
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:05:13 2014 +0200

    Remove comment for fixed issue

commit ff053beb3430b82ffe441d1d7d3dc281ae9a4f54
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:04:25 2014 +0200

    fix submitAssignment with :enter in hand over page

commit 541a0dadc23f217a02e1789632f945c0dd8926dc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:04:05 2014 +0200

    optimize sign contract step

commit 72856b80da331985edecea0ef1e059b8d343dfe0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 09:19:12 2014 +0200

    initializer for runing dev server with a specific test dump

commit ca542d856a912c215e623f312394b55568cc7388
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 17:35:49 2014 +0200

    database consistency report

commit 422952fc985ba088f71b51b12c9e9f2c682f0099
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 15:36:57 2014 +0200

    removing fake location association from option, just used on the picking_list

commit 173b0b0260f089469efb35f621f8224fbaf434dc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 2 15:31:20 2014 +0200

    [FIX CI] features/manage/delegation.feature:194

commit 23af9d6fd58657585c4bba200d889679b9985fee
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 2 15:01:57 2014 +0200

    [FIX CI] features/examples/inventar.feature:248

commit 80a28f408776e41d14ad7b41b08da3eaf4f3b2bc
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 14:28:23 2014 +0200

    removing @current tag from scenarios