push_type_admin 0.1.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +20 -0
- data/README.md +3 -0
- data/app/assets/images/push_type/icon-file-audio.png +0 -0
- data/app/assets/images/push_type/icon-file-document.png +0 -0
- data/app/assets/images/push_type/icon-file-video.png +0 -0
- data/app/assets/images/push_type/pushtype-logo.png +0 -0
- data/app/assets/javascripts/push_type/admin.js.coffee +74 -0
- data/app/assets/javascripts/push_type/asset_pipeline.js.coffee.erb +17 -0
- data/app/assets/javascripts/push_type/assets.js.coffee +61 -0
- data/app/assets/javascripts/push_type/nodes.js.coffee +60 -0
- data/app/assets/stylesheets/push_type/admin.scss +515 -0
- data/app/assets/stylesheets/push_type/foundation_and_overrides.scss +1443 -0
- data/app/assets/stylesheets/push_type/froala_theme.scss +373 -0
- data/app/controllers/push_type/admin_controller.rb +14 -0
- data/app/controllers/push_type/assets_controller.rb +68 -0
- data/app/controllers/push_type/nodes_controller.rb +93 -0
- data/app/controllers/push_type/users_controller.rb +73 -0
- data/app/helpers/push_type/admin_helper.rb +15 -0
- data/app/helpers/push_type/assets_helper.rb +15 -0
- data/app/helpers/push_type/users_helper.rb +13 -0
- data/app/views/kaminari/_first_page.html.haml +2 -0
- data/app/views/kaminari/_gap.html.haml +2 -0
- data/app/views/kaminari/_last_page.html.haml +2 -0
- data/app/views/kaminari/_next_page.html.haml +2 -0
- data/app/views/kaminari/_page.html.haml +2 -0
- data/app/views/kaminari/_paginator.html.haml +11 -0
- data/app/views/kaminari/_prev_page.html.haml +2 -0
- data/app/views/layouts/push_type/admin.html.erb +55 -0
- data/app/views/push_type/assets/_form.html.haml +50 -0
- data/app/views/push_type/assets/edit.html.haml +4 -0
- data/app/views/push_type/assets/index.html.haml +34 -0
- data/app/views/push_type/assets/new.html.haml +4 -0
- data/app/views/push_type/fields/_default.html.haml +2 -0
- data/app/views/push_type/nodes/_form_fields.html.haml +61 -0
- data/app/views/push_type/nodes/_meta_table.html.haml +8 -0
- data/app/views/push_type/nodes/_new_node_button.html.haml +17 -0
- data/app/views/push_type/nodes/edit.html.haml +7 -0
- data/app/views/push_type/nodes/index.html.haml +56 -0
- data/app/views/push_type/nodes/new.html.haml +11 -0
- data/app/views/push_type/users/_form.html.haml +30 -0
- data/app/views/push_type/users/_meta_table.html.haml +0 -0
- data/app/views/push_type/users/_user.html.haml +7 -0
- data/app/views/push_type/users/edit.html.haml +4 -0
- data/app/views/push_type/users/index.html.haml +24 -0
- data/app/views/push_type/users/new.html.haml +4 -0
- data/config/initializers/inline_error_messages.rb +7 -0
- data/config/initializers/kaminari_config.rb +10 -0
- data/config/routes.rb +16 -0
- data/lib/push_type/admin/engine.rb +16 -0
- data/lib/push_type/admin.rb +27 -0
- data/lib/push_type/breadcrumbs/foundation.rb +11 -0
- data/lib/push_type/rails/form_builder.rb +13 -0
- data/lib/push_type_admin.rb +1 -0
- data/lib/tasks/push_type_tasks.rake +4 -0
- data/test/controllers/push_type/assets_controller_test.rb +67 -0
- data/test/controllers/push_type/nodes_controller_test.rb +101 -0
- data/test/controllers/push_type/users_controller_test.rb +72 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/page.rb +10 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/nodes/page.html.erb +3 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +14 -0
- data/test/dummy/config/boot.rb +4 -0
- data/test/dummy/config/database.yml +85 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/push_type.rb +5 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +59 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20141205213506_create_push_type_users.push_type.rb +13 -0
- data/test/dummy/db/migrate/20141205213507_create_push_type_nodes.push_type.rb +25 -0
- data/test/dummy/db/migrate/20141205213508_create_push_type_node_hierarchies.push_type.rb +17 -0
- data/test/dummy/db/migrate/20141205213509_create_push_type_assets.push_type.rb +19 -0
- data/test/dummy/db/schema.rb +67 -0
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/log/test.log +2322 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/robots.txt +5 -0
- data/test/dummy/tmp/cache/assets/test/sass/53cc07db53069364c4116d03ae9493d85566d502/_functions.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_accordion.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_alert-boxes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_block-grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_clearing.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_dropdown-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_dropdown.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_flex-video.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_global.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_icon-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_inline-lists.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_joyride.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_keystrokes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_magellan.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_offcanvas.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_orbit.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_pricing-tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_range-slider.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_reveal.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_side-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_split-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_sub-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_switches.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tabs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_thumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tooltips.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_top-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_visibility.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/68968d876746de0885a03aacd18ec354e154ffed/foundation-icons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/805c0b657f4b79d174c13bc42a4759a57d5a5484/foundation.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/admin.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/foundation_and_overrides.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/froala_theme.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/00ae61e049df7e5570b8c57835868cfe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/042e6dec69dbf88f86f5e8c360b52bcb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0448802b256c25a379824969bf01241e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/05f11ba90b1f59f6a65002fef96de531 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/090f2c9bc57f8e73105a98a800051354 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/09fd8b22d7c059ed78b065ffa44138a4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0a01f1c3288f982772ed595695292767 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0b83e9e8467b82a0991df336697846e0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/10a718d020e26634ffd3071d63270dd1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/12375f1bf3d91db0a06c3fc436918949 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/12a4fbfdcb2f1ed98ebd869761bce11e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1505f3ddd93d7be2405c81d84a45cbfb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/161b66dc0b76d65e577b5465f86cb767 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/18ee507bade4f16ba4f6a5c93f3aac22 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1c63cb75109171c505bf1b6b3f26513b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1da46bb361bbd7b80dc66e5737dbf2a7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2479bd5cbccdeac3ab4df62c2c12e8d3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2599cde7c63354f12928a204c42fe68b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/25b238c2ec907a80d53955a0bb81073c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2821176477eee8de7b9581f0564d0947 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2a00ce050c10f75691b820576ec3aefd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2a854446f76c1902defbfa436b1e7df8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2c745da65bdbc8ebb88b6bce026972b9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2d1bc2b9dc5ee0ed5635abc31fb1bc88 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/31c57ad31a65f9a951c6d7268cdedae5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/337d12a0890572dfec336aa11e864651 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3a2e7d8d06318496bd7e5c6bac44adf8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3d4f40cd6363f1841fa7c17dcbd281ce +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/47dcfb84d9a092ad939f512e1d3db43c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/48582f4afd1c515e7eb10a8fc2195deb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4c6b223eba19a3d4009cbda20ed1ae2d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4fc498f23125a9811434c6d5d5b43b64 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/505162da4e90217e5f52f5e8f1922a0d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/557b45e924759b342404ddfb736f95a2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/55d58e1add1ca367e262464e83ad82cf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/55d7985953b175268932d2f7e50f64e0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/59992ed1702654aa166f8572af80a301 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/600202d00479f08d2e69019e34d12e65 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/62462f7d0da5dfe3ae7923c7c21325c0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/666e486cb09d9612ba03d995085ea02d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/67d67f783372c9b99e2ff84c12d38dfb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6d21cd96abbcb6506d99fb93e8a11196 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6e714e8b8ac03d2e562e8a71c40e00f8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6f2f2b2fbb1097278be40facf7aa8447 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/72e0f0b80593c7ccfaf939c504f8127f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7326e3e660754d56c46671c7347c5e97 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/75c5663a92b2003b794d5f5d184fde44 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7b63c613f1053bde6004342003178a0e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7d07558d12b9bd9b9dfa778344bab4ac +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7ea9d575b03f8effb678d4dcedf3d079 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7f0b91f5fa71c52d3cbe1f108fb7c942 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/805c63977d339feb2ea7b61e1141a32f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/81ba6a364949bd4ffe2732ae5745012d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/81e2498e0e1457dd93b47780ae28fc03 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/897553ff72f546645e24e94feec75255 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8a34d99aaa243ebb4e60f483a5b5a817 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8e20677e2b4bd3f063a63fcf9e673971 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8feb3d758b7824f15b301f9dc024c3f6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/932f699ead87a4b9910d47334ed14d60 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/959fa77a7302a3002d5fb1394575117b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/969e05674f51d3b5b500e605e0292573 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/972e71e7d6b360ef56c88716f3191aaf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/98228623f6175426b2d7964b4a921cbb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/987bf17b1a3915d5c6d95ebda01e8f49 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9aef3ae1f0c62b895d86ab60901dd450 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9f65b180bd79d7b67e5fb1fe8ded1383 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a4ee671663a58ce1f1860b1e9a9d17fb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a55e988592ebc0d8e4e4ef1244ae4da7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a590260912e62280bb115dd52a953b18 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a6453a78eb0c813a0b69a12cb7c4ab2c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a721a930039ed66bd3f092ab1e9c8de6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a748bad0d4f5d6e6bbdf1b340905795b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a96494099d559bfd8cb5257e21cb196c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a970f64c67051f35069f45d8dad113a5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/aaa6dc2bd59e21dd14b0c86a308a1d1f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ac1b1f0c521a6acb5833209d7b18d888 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b24f2d6f62512f4cb11c6a2e44bf90e4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b28bcc6d89b692e6b74758c30e21b862 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b3b2a83d3d7d735130f0b029e58b29b8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b3d0193a1439465426a4d051a161291d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b657c356e24f45a8b92d4f4da9ff361d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b76beafa9aef0c7a18bf63fe612ecd17 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b771c2de3967bda011cf04e0979497cf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b8a73c4d259957f05d45cb5d96d41ff1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ba87909b8d71ddaedd84c3f6c00dce72 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/badf6e6ab7c3d1cc2b180e5883005a40 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bbfc8dec2c2cc07cf4c1708597316a77 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bc732efa6ca399217b023bd1e04f0404 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bd5b45287cfdac63ed7199b7982da02f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bee4e1605077e29abd380b05b645cbb4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c0e7a018799e51565da4aae3cd7409b4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c190d0bdd188c43629f35b9f463b86af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c2b59fd99edc4b53754f7cb4e160452f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c42a7aac68d827f88bcc25a41cdb5591 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c5ef052e357af6829f6c522a38916fc7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c705dc7fb9e60c7d39b5c23a101cd830 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c988fd2c5c9497ccef54f79a9e444ac6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cb761fc7bfc4c192abf5c946f863ab1e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ce523687d631719d872f2869d34803b0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d2215e57429ecae68a054210e665d787 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d30a320df486e076298c602d428f3145 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d3921fc37cc437f0933c4dee9d089fd8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d527d40cd214f965c2751831ef138ba7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d8daf6c8e5df881485c0e1139a275f6d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d9e5382620928a6b4a8cd70bdac10aa3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dd803fd7a93619599c7e703c2b307411 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e05796fbbc7fcdcaefdd97534f2e4030 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e1c3eff1f3886da4c71a854d42077d10 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e568172da8ab8581f83f98dad0a73d29 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f02093872b151ddb0fd1074fe83ff846 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f100237ea34e5360da23f95cca21c340 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f25b88a46a5a3b1b179079f6c0e4039a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f31d581aaa301ef9ef6a08edc4319c35 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f5fcab9d313889bf6d14a05040aff5bc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f66bf7665e75e4d537977c71a5e39a4e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f6c61aec4cc93384f9655a7d8aba73fe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fa7e1f9a13f606e2603a17f8e00aa32a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fcce52ee43ecad8cb3f18fc8f13a66b7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fd5e59fed8301f86b74e551534fce2b2 +0 -0
- data/test/helpers/push_type/admin_helper_test.rb +25 -0
- data/test/helpers/push_type/assets_helper_test.rb +26 -0
- data/test/test_helper.rb +19 -0
- data/vendor/assets/javascripts/confirm_with_reveal.js.coffee +148 -0
- data/vendor/assets/javascripts/jquery.filedrop.js +568 -0
- data/vendor/assets/javascripts/jquery.sortable.js +81 -0
- data/vendor/assets/javascripts/jquery.sticky.js +170 -0
- metadata +724 -0
@@ -0,0 +1,2322 @@
|
|
1
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreatePushTypeUsers (20141205213506)
|
5
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6
|
+
[1m[36mSQL (5.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
7
|
+
[1m[35m (3.4ms)[0m CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp)
|
8
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141205213506"]]
|
9
|
+
[1m[35m (0.9ms)[0m COMMIT
|
10
|
+
Migrating to CreatePushTypeNodes (20141205213507)
|
11
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
12
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
|
13
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141205213507"]]
|
14
|
+
[1m[35m (0.6ms)[0m COMMIT
|
15
|
+
Migrating to CreatePushTypeNodeHierarchies (20141205213508)
|
16
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
|
18
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
|
19
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
|
20
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141205213508"]]
|
21
|
+
[1m[35m (0.5ms)[0m COMMIT
|
22
|
+
Migrating to CreatePushTypeAssets (20141205213509)
|
23
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24
|
+
[1m[35m (3.6ms)[0m CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
|
25
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141205213509"]]
|
26
|
+
[1m[35m (0.5ms)[0m COMMIT
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31
|
+
-----------------------------------------------------------------------------
|
32
|
+
PushType::AssetsHelper::#asset_icon::with document asset: test_0001_anonymous
|
33
|
+
-----------------------------------------------------------------------------
|
34
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:15.005927"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "1"], ["mime_type", "application/pdf"], ["updated_at", "2014-12-05 21:35:15.005927"]]
|
36
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
38
|
+
[1m[35m (3.0ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
39
|
+
[1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
40
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
41
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
42
|
+
[1m[35m (0.1ms)[0m BEGIN
|
43
|
+
-------------------------------------------------------------------------------
|
44
|
+
PushType::UsersController::PUT #update::with in-valid user: test_0001_anonymous
|
45
|
+
-------------------------------------------------------------------------------
|
46
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
47
|
+
[1m[35mPushType::User Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
|
48
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:15.058976"], ["email", "joe-1@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:15.058976"]]
|
49
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
50
|
+
Processing by PushType::UsersController#update as HTML
|
51
|
+
Parameters: {"user"=>{"name"=>""}, "id"=>"6819bf24-61ec-4054-89b7-7b079979db97"}
|
52
|
+
[1m[36mPushType::User Load (1.1ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "6819bf24-61ec-4054-89b7-7b079979db97"]]
|
53
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
54
|
+
[1m[36mPushType::User Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-1@example.com' AND "push_type_users"."id" != '6819bf24-61ec-4054-89b7-7b079979db97') LIMIT 1[0m
|
55
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
56
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.9ms)
|
57
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (14.8ms)
|
58
|
+
Completed 200 OK in 11154ms (Views: 11134.6ms | ActiveRecord: 1.8ms)
|
59
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
60
|
+
[1m[35m (5.3ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
61
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
62
|
+
[1m[35m (2.4ms)[0m ROLLBACK
|
63
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
64
|
+
-------------------------------------------------------------------------------
|
65
|
+
PushType::UsersController::PUT #update::with in-valid user: test_0002_anonymous
|
66
|
+
-------------------------------------------------------------------------------
|
67
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mPushType::User Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1[0m
|
69
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:26.237307"], ["email", "joe-2@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:26.237307"]]
|
70
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
71
|
+
Processing by PushType::UsersController#update as HTML
|
72
|
+
Parameters: {"user"=>{"name"=>""}, "id"=>"f04275c8-092b-4899-8e04-14b05f23cdfc"}
|
73
|
+
[1m[35mPushType::User Load (0.4ms)[0m SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "f04275c8-092b-4899-8e04-14b05f23cdfc"]]
|
74
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
75
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-2@example.com' AND "push_type_users"."id" != 'f04275c8-092b-4899-8e04-14b05f23cdfc') LIMIT 1
|
76
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
77
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
78
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
|
79
|
+
Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.9ms)
|
80
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
81
|
+
[1m[36m (6.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
82
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
83
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
84
|
+
[1m[35m (0.2ms)[0m BEGIN
|
85
|
+
---------------------------------------------------------------------------
|
86
|
+
PushType::NodesController::POST #position::append node: test_0001_anonymous
|
87
|
+
---------------------------------------------------------------------------
|
88
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
89
|
+
[1m[35mPushType::Node Exists (0.9ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
90
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.319033"], ["slug", "foo-bar-1"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.319033"]]
|
91
|
+
[1m[35m (0.6ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t1f2805befd01864c544c68faf5b7aff5
|
92
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"], ["descendant_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"], ["generations", 0]]
|
93
|
+
[1m[35m (1.0ms)[0m UPDATE "push_type_nodes"
|
94
|
+
SET "sort_order" = t.seq + -1
|
95
|
+
FROM (
|
96
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
97
|
+
FROM "push_type_nodes"
|
98
|
+
WHERE "parent_id" IS NULL
|
99
|
+
) AS t
|
100
|
+
WHERE "push_type_nodes"."id" = t.id
|
101
|
+
|
102
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
103
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
104
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t88a25d6daf21e7907b7f5d28d7defd54[0m
|
105
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
107
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
108
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.364357"], ["slug", "foo-bar-2"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.364357"]]
|
109
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t8a649fb9a60b4942a93627250ef6360a
|
110
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"], ["descendant_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"], ["generations", 0]]
|
111
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
112
|
+
SET "sort_order" = t.seq + -1
|
113
|
+
FROM (
|
114
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
115
|
+
FROM "push_type_nodes"
|
116
|
+
WHERE "parent_id" IS NULL
|
117
|
+
) AS t
|
118
|
+
WHERE "push_type_nodes"."id" = t.id
|
119
|
+
|
120
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
|
121
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
|
122
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS ta41a83541c13a7a8f1d15bfbfb314bed[0m
|
123
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
126
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.377852"], ["slug", "foo-bar-3"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.377852"]]
|
127
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t8dfb2bfa246b208b3dda4836e5f0482b
|
128
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "5f774d52-517e-47a7-b592-a1fcb595de18"], ["descendant_id", "5f774d52-517e-47a7-b592-a1fcb595de18"], ["generations", 0]]
|
129
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
130
|
+
SET "sort_order" = t.seq + -1
|
131
|
+
FROM (
|
132
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
133
|
+
FROM "push_type_nodes"
|
134
|
+
WHERE "parent_id" IS NULL
|
135
|
+
) AS t
|
136
|
+
WHERE "push_type_nodes"."id" = t.id
|
137
|
+
|
138
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
|
139
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
|
140
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t54ba2e6d8e7cf8dddc437a4829961c5d[0m
|
141
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
143
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
144
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.387211"], ["slug", "foo-bar-4"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.387211"]]
|
145
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tc6cdc17514678333ffe741dd904a043b
|
146
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "2c631359-1112-48fc-9f5b-ba9993823550"], ["descendant_id", "2c631359-1112-48fc-9f5b-ba9993823550"], ["generations", 0]]
|
147
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
148
|
+
SET "sort_order" = t.seq + -1
|
149
|
+
FROM (
|
150
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
151
|
+
FROM "push_type_nodes"
|
152
|
+
WHERE "parent_id" IS NULL
|
153
|
+
) AS t
|
154
|
+
WHERE "push_type_nodes"."id" = t.id
|
155
|
+
|
156
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
|
157
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
|
158
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tbb446f448166f9484ad43906d1062563[0m
|
159
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
161
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
162
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.397562"], ["slug", "foo-bar-5"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.397562"]]
|
163
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tc2e07d9a5287ed64c1b7e478ad04c214
|
164
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"], ["descendant_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"], ["generations", 0]]
|
165
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
166
|
+
SET "sort_order" = t.seq + -1
|
167
|
+
FROM (
|
168
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
169
|
+
FROM "push_type_nodes"
|
170
|
+
WHERE "parent_id" IS NULL
|
171
|
+
) AS t
|
172
|
+
WHERE "push_type_nodes"."id" = t.id
|
173
|
+
|
174
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
|
175
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
|
176
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t434e13033dcaac76e5f5e172eac92fbf[0m
|
177
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
Processing by PushType::NodesController#position as HTML
|
179
|
+
Parameters: {"prev"=>"c8226ba4-1dbc-4353-adb1-6cc9c7006b88", "id"=>"7c05c7f4-6a93-475e-b79c-9d2194dfb591"}
|
180
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
|
181
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
182
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
183
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."id" != 'c8226ba4-1dbc-4353-adb1-6cc9c7006b88' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
184
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
185
|
+
[1m[35m (0.3ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t09d54c1062701786c4ec7701cf76c9e4
|
186
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
187
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."id" != '7c05c7f4-6a93-475e-b79c-9d2194dfb591' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
188
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '7c05c7f4-6a93-475e-b79c-9d2194dfb591'[0m [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.417273"]]
|
189
|
+
[1m[35m (0.6ms)[0m UPDATE "push_type_nodes"
|
190
|
+
SET "sort_order" = t.seq + -1
|
191
|
+
FROM (
|
192
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
193
|
+
FROM "push_type_nodes"
|
194
|
+
WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
|
195
|
+
) AS t
|
196
|
+
WHERE "push_type_nodes"."id" = t.id
|
197
|
+
|
198
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
199
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
200
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
|
201
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
202
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t8ad2a8f606d296fd18466230d5696a7d[0m
|
203
|
+
Completed 200 OK in 16ms (ActiveRecord: 4.0ms)
|
204
|
+
Processing by PushType::NodesController#index as HTML
|
205
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
206
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
207
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
208
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
|
209
|
+
[1m[35m (0.3ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
|
210
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
|
211
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
|
212
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
|
213
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
214
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.7ms)
|
215
|
+
Completed 200 OK in 47ms (Views: 39.1ms | ActiveRecord: 2.7ms)
|
216
|
+
[1m[36mPushType::Node Load (0.5ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0[0m
|
217
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
218
|
+
[1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
219
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
220
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
221
|
+
[1m[35m (0.1ms)[0m BEGIN
|
222
|
+
---------------------------------------------------------------------------
|
223
|
+
PushType::NodesController::POST #position::append node: test_0002_anonymous
|
224
|
+
---------------------------------------------------------------------------
|
225
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
226
|
+
[1m[35mPushType::Node Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
227
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.491808"], ["slug", "foo-bar-6"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.491808"]]
|
228
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t2029e4197e59fcf51332fc2309e2f628
|
229
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"], ["descendant_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"], ["generations", 0]]
|
230
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
231
|
+
SET "sort_order" = t.seq + -1
|
232
|
+
FROM (
|
233
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
234
|
+
FROM "push_type_nodes"
|
235
|
+
WHERE "parent_id" IS NULL
|
236
|
+
) AS t
|
237
|
+
WHERE "push_type_nodes"."id" = t.id
|
238
|
+
|
239
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
240
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
241
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t8451c58daecbe901cfe54b50e5b914b4[0m
|
242
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
243
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
244
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
245
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.503124"], ["slug", "foo-bar-7"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.503124"]]
|
246
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t8f25fbbe05e085149ddbb0af858129b7
|
247
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"], ["descendant_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"], ["generations", 0]]
|
248
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
249
|
+
SET "sort_order" = t.seq + -1
|
250
|
+
FROM (
|
251
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
252
|
+
FROM "push_type_nodes"
|
253
|
+
WHERE "parent_id" IS NULL
|
254
|
+
) AS t
|
255
|
+
WHERE "push_type_nodes"."id" = t.id
|
256
|
+
|
257
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
|
258
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
|
259
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tc59a0b288a5dd713bd8d3922dfc96d6b[0m
|
260
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
262
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
263
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.512587"], ["slug", "foo-bar-8"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.512587"]]
|
264
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t09cb4e6d320d15e9e1f4552c91d6e950
|
265
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"], ["descendant_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"], ["generations", 0]]
|
266
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
267
|
+
SET "sort_order" = t.seq + -1
|
268
|
+
FROM (
|
269
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
270
|
+
FROM "push_type_nodes"
|
271
|
+
WHERE "parent_id" IS NULL
|
272
|
+
) AS t
|
273
|
+
WHERE "push_type_nodes"."id" = t.id
|
274
|
+
|
275
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
|
276
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
|
277
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS td31c39c6d811d307206e4f057e30c972[0m
|
278
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
279
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
280
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
281
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.521593"], ["slug", "foo-bar-9"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.521593"]]
|
282
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta8dbbfef69263c7ca74fa452157c1a2c
|
283
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"], ["descendant_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"], ["generations", 0]]
|
284
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
285
|
+
SET "sort_order" = t.seq + -1
|
286
|
+
FROM (
|
287
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
288
|
+
FROM "push_type_nodes"
|
289
|
+
WHERE "parent_id" IS NULL
|
290
|
+
) AS t
|
291
|
+
WHERE "push_type_nodes"."id" = t.id
|
292
|
+
|
293
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
|
294
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
|
295
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tcf46aeb328d8402abf4dd2877b4dc1b4[0m
|
296
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
299
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.530253"], ["slug", "foo-bar-10"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.530253"]]
|
300
|
+
[1m[35m (0.3ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t0c6c0306c6715982fe03467edc4ebeed
|
301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"], ["descendant_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"], ["generations", 0]]
|
302
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
303
|
+
SET "sort_order" = t.seq + -1
|
304
|
+
FROM (
|
305
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
306
|
+
FROM "push_type_nodes"
|
307
|
+
WHERE "parent_id" IS NULL
|
308
|
+
) AS t
|
309
|
+
WHERE "push_type_nodes"."id" = t.id
|
310
|
+
|
311
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
|
312
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
|
313
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t066ca43639789972796cd27e38407622[0m
|
314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
Processing by PushType::NodesController#position as HTML
|
316
|
+
Parameters: {"prev"=>"bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9", "id"=>"3a9ba944-2b80-4f43-bd60-09973299f71e"}
|
317
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
|
318
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
319
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
320
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."id" != 'bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
321
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te38c1f3fd5e90427d52560353534ce7d
|
323
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
324
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."id" != '3a9ba944-2b80-4f43-bd60-09973299f71e' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
325
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '3a9ba944-2b80-4f43-bd60-09973299f71e'[0m [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.545549"]]
|
326
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
327
|
+
SET "sort_order" = t.seq + -1
|
328
|
+
FROM (
|
329
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
330
|
+
FROM "push_type_nodes"
|
331
|
+
WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
|
332
|
+
) AS t
|
333
|
+
WHERE "push_type_nodes"."id" = t.id
|
334
|
+
|
335
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
336
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
337
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
|
338
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
339
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t68e8af7ede883e2ba920c396e24dab92[0m
|
340
|
+
Completed 200 OK in 11ms (ActiveRecord: 3.2ms)
|
341
|
+
Processing by PushType::NodesController#index as HTML
|
342
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
343
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
344
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
345
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
|
346
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
|
347
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
|
348
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
|
349
|
+
[1m[36m (0.4ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
|
350
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
351
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.1ms)
|
352
|
+
Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 2.7ms)
|
353
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0[0m
|
354
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
355
|
+
[1m[36m (6.1ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
356
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
357
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
358
|
+
[1m[35m (0.1ms)[0m BEGIN
|
359
|
+
--------------------------------------------------
|
360
|
+
PushType::AdminHelper::#title: test_0001_anonymous
|
361
|
+
--------------------------------------------------
|
362
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
363
|
+
[1m[35m (5.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
364
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
365
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
366
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
367
|
+
--------------------------------------------------
|
368
|
+
PushType::AdminHelper::#title: test_0002_anonymous
|
369
|
+
--------------------------------------------------
|
370
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
371
|
+
[1m[36m (6.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
372
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
373
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
374
|
+
[1m[35m (0.1ms)[0m BEGIN
|
375
|
+
--------------------------------------------------------
|
376
|
+
PushType::UsersController::GET #new: test_0001_anonymous
|
377
|
+
--------------------------------------------------------
|
378
|
+
Processing by PushType::UsersController#new as HTML
|
379
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
380
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
|
381
|
+
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
382
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
383
|
+
[1m[35m (5.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
384
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
385
|
+
[1m[35m (2.3ms)[0m ROLLBACK
|
386
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
387
|
+
--------------------------------------------------------
|
388
|
+
PushType::UsersController::GET #new: test_0002_anonymous
|
389
|
+
--------------------------------------------------------
|
390
|
+
Processing by PushType::UsersController#new as HTML
|
391
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
392
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.1ms)
|
393
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
394
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
395
|
+
[1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
396
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
397
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
398
|
+
[1m[35m (0.2ms)[0m BEGIN
|
399
|
+
--------------------------------------------------------
|
400
|
+
PushType::UsersController::GET #new: test_0003_anonymous
|
401
|
+
--------------------------------------------------------
|
402
|
+
Processing by PushType::UsersController#new as HTML
|
403
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
404
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.5ms)
|
405
|
+
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)
|
406
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
407
|
+
[1m[35m (5.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
408
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
409
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
410
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
411
|
+
----------------------------------------------------------------------------
|
412
|
+
PushType::NodesController::PUT #update::with valid node: test_0001_anonymous
|
413
|
+
----------------------------------------------------------------------------
|
414
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
415
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
416
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.688339"], ["slug", "foo-bar-11"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.688339"]]
|
417
|
+
[1m[36m (0.5ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t5f5f8885cc77df30aa493aef37192db4[0m
|
418
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "66b23416-81de-46a0-bb06-d794bd5f0431"], ["descendant_id", "66b23416-81de-46a0-bb06-d794bd5f0431"], ["generations", 0]]
|
419
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
420
|
+
SET "sort_order" = t.seq + -1
|
421
|
+
FROM (
|
422
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
423
|
+
FROM "push_type_nodes"
|
424
|
+
WHERE "parent_id" IS NULL
|
425
|
+
) AS t
|
426
|
+
WHERE "push_type_nodes"."id" = t.id
|
427
|
+
[0m
|
428
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
|
429
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
|
430
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tdef12aedd9ecd160d9a12123efa8613b
|
431
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
432
|
+
Processing by PushType::NodesController#update as HTML
|
433
|
+
Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"66b23416-81de-46a0-bb06-d794bd5f0431"}
|
434
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
|
435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
436
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."id" != '66b23416-81de-46a0-bb06-d794bd5f0431' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
437
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '66b23416-81de-46a0-bb06-d794bd5f0431'[0m [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.711674"]]
|
438
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
439
|
+
Redirected to http://test.host/push_type/nodes
|
440
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.3ms)
|
441
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
442
|
+
[1m[35m (7.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
443
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
444
|
+
[1m[35m (2.3ms)[0m ROLLBACK
|
445
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
446
|
+
----------------------------------------------------------------------------
|
447
|
+
PushType::NodesController::PUT #update::with valid node: test_0002_anonymous
|
448
|
+
----------------------------------------------------------------------------
|
449
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
450
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
451
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.736025"], ["slug", "foo-bar-12"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.736025"]]
|
452
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tdb8b05a3ee49c3ca4a51bbed06f6acf2[0m
|
453
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8997f672-1424-46ed-97fd-ad924f00ba77"], ["descendant_id", "8997f672-1424-46ed-97fd-ad924f00ba77"], ["generations", 0]]
|
454
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
455
|
+
SET "sort_order" = t.seq + -1
|
456
|
+
FROM (
|
457
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
458
|
+
FROM "push_type_nodes"
|
459
|
+
WHERE "parent_id" IS NULL
|
460
|
+
) AS t
|
461
|
+
WHERE "push_type_nodes"."id" = t.id
|
462
|
+
[0m
|
463
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
|
464
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
|
465
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t9d0c1593802b0abbceb35c1152bd6494
|
466
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
467
|
+
Processing by PushType::NodesController#update as HTML
|
468
|
+
Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"8997f672-1424-46ed-97fd-ad924f00ba77"}
|
469
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
|
470
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."id" != '8997f672-1424-46ed-97fd-ad924f00ba77' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
472
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '8997f672-1424-46ed-97fd-ad924f00ba77'[0m [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.747989"]]
|
473
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
474
|
+
Redirected to http://test.host/push_type/nodes
|
475
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
|
476
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
477
|
+
[1m[35m (6.5ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
478
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
479
|
+
[1m[35m (2.3ms)[0m ROLLBACK
|
480
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
481
|
+
----------------------------------------------------------------------------
|
482
|
+
PushType::NodesController::PUT #update::with valid node: test_0003_anonymous
|
483
|
+
----------------------------------------------------------------------------
|
484
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
485
|
+
[1m[36mPushType::Node Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
486
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.770644"], ["slug", "foo-bar-13"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.770644"]]
|
487
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t1e0150a7639787300f036b51562afbf9[0m
|
488
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"], ["descendant_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"], ["generations", 0]]
|
489
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
490
|
+
SET "sort_order" = t.seq + -1
|
491
|
+
FROM (
|
492
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
493
|
+
FROM "push_type_nodes"
|
494
|
+
WHERE "parent_id" IS NULL
|
495
|
+
) AS t
|
496
|
+
WHERE "push_type_nodes"."id" = t.id
|
497
|
+
[0m
|
498
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
|
499
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
|
500
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t75cbdc39710597f6036329b68a81b2e9
|
501
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
502
|
+
Processing by PushType::NodesController#update as HTML
|
503
|
+
Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"b202098b-6d7a-4ad6-8683-5157cf2b66be"}
|
504
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
|
505
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
506
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."id" != 'b202098b-6d7a-4ad6-8683-5157cf2b66be' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
507
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'b202098b-6d7a-4ad6-8683-5157cf2b66be'[0m [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.784650"]]
|
508
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
509
|
+
Redirected to http://test.host/push_type/nodes
|
510
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
|
511
|
+
[1m[36mPage Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
|
512
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
513
|
+
[1m[36m (5.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
514
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
515
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
516
|
+
[1m[35m (0.2ms)[0m BEGIN
|
517
|
+
----------------------------------------------------------------------------
|
518
|
+
PushType::NodesController::POST #position::prepend node: test_0001_anonymous
|
519
|
+
----------------------------------------------------------------------------
|
520
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
521
|
+
[1m[35mPushType::Node Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
522
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.805938"], ["slug", "foo-bar-14"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.805938"]]
|
523
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te317abd3d75558633646837c5d526703
|
524
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"], ["descendant_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"], ["generations", 0]]
|
525
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
526
|
+
SET "sort_order" = t.seq + -1
|
527
|
+
FROM (
|
528
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
529
|
+
FROM "push_type_nodes"
|
530
|
+
WHERE "parent_id" IS NULL
|
531
|
+
) AS t
|
532
|
+
WHERE "push_type_nodes"."id" = t.id
|
533
|
+
|
534
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
535
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
536
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t5b78a894b11c820ed2e65dfa77900f34[0m
|
537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
539
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-15' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
540
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.814772"], ["slug", "foo-bar-15"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.814772"]]
|
541
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tc0f44b8b77a487d3c45ef52d1300748c
|
542
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"], ["descendant_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"], ["generations", 0]]
|
543
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
544
|
+
SET "sort_order" = t.seq + -1
|
545
|
+
FROM (
|
546
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
547
|
+
FROM "push_type_nodes"
|
548
|
+
WHERE "parent_id" IS NULL
|
549
|
+
) AS t
|
550
|
+
WHERE "push_type_nodes"."id" = t.id
|
551
|
+
|
552
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
|
553
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
|
554
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t18e8f2ad174491a53aea81fe22951f76[0m
|
555
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
557
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-16' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
558
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.823380"], ["slug", "foo-bar-16"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.823380"]]
|
559
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t75b67d36252761bf7d0f024b5e2ce696
|
560
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"], ["descendant_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"], ["generations", 0]]
|
561
|
+
[1m[35m (0.9ms)[0m UPDATE "push_type_nodes"
|
562
|
+
SET "sort_order" = t.seq + -1
|
563
|
+
FROM (
|
564
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
565
|
+
FROM "push_type_nodes"
|
566
|
+
WHERE "parent_id" IS NULL
|
567
|
+
) AS t
|
568
|
+
WHERE "push_type_nodes"."id" = t.id
|
569
|
+
|
570
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
|
571
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
|
572
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tc1d5a32ee0c87ababac2483ff8d15f76[0m
|
573
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
574
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-17' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
576
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.835197"], ["slug", "foo-bar-17"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.835197"]]
|
577
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t758b36fc726c89b2ce91cb521e272d87
|
578
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"], ["descendant_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"], ["generations", 0]]
|
579
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
580
|
+
SET "sort_order" = t.seq + -1
|
581
|
+
FROM (
|
582
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
583
|
+
FROM "push_type_nodes"
|
584
|
+
WHERE "parent_id" IS NULL
|
585
|
+
) AS t
|
586
|
+
WHERE "push_type_nodes"."id" = t.id
|
587
|
+
|
588
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
|
589
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
|
590
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS taa2b887365ce9a6623a06930e9a7f9df[0m
|
591
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
594
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.843552"], ["slug", "foo-bar-18"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.843552"]]
|
595
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t183f48a306bc119bf79bc4fbcc0d68b0
|
596
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"], ["descendant_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"], ["generations", 0]]
|
597
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
598
|
+
SET "sort_order" = t.seq + -1
|
599
|
+
FROM (
|
600
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
601
|
+
FROM "push_type_nodes"
|
602
|
+
WHERE "parent_id" IS NULL
|
603
|
+
) AS t
|
604
|
+
WHERE "push_type_nodes"."id" = t.id
|
605
|
+
|
606
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
|
607
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
|
608
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t449e6161322b2029c8a30da3fbd182a5[0m
|
609
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
610
|
+
Processing by PushType::NodesController#position as HTML
|
611
|
+
Parameters: {"next"=>"e2a1a78c-54bb-4ffa-abb6-7255bbab3707", "id"=>"4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"}
|
612
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
|
613
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
614
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
615
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."id" != 'e2a1a78c-54bb-4ffa-abb6-7255bbab3707' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
616
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
617
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tb9435c1ad3cbbcef385ab23965836c68
|
618
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
619
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."id" != '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
620
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4'[0m [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.857838"]]
|
621
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
622
|
+
SET "sort_order" = t.seq + -1
|
623
|
+
FROM (
|
624
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
625
|
+
FROM "push_type_nodes"
|
626
|
+
WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
|
627
|
+
) AS t
|
628
|
+
WHERE "push_type_nodes"."id" = t.id
|
629
|
+
|
630
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
631
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
632
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
|
633
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = 'e2a1a78c-54bb-4ffa-abb6-7255bbab3707'
|
634
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4'[0m
|
635
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
636
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t520a469102cb672b85495e9db2ae2eb0[0m
|
637
|
+
Completed 200 OK in 13ms (ActiveRecord: 3.7ms)
|
638
|
+
Processing by PushType::NodesController#index as HTML
|
639
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
640
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
641
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
642
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
|
643
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
|
644
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
|
645
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
|
646
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
|
647
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
648
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.6ms)
|
649
|
+
Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 2.4ms)
|
650
|
+
[1m[36mPushType::Node Load (0.8ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0[0m
|
651
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
652
|
+
[1m[36m (7.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
653
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
654
|
+
[1m[36m (2.5ms)[0m [1mROLLBACK[0m
|
655
|
+
[1m[35m (0.2ms)[0m BEGIN
|
656
|
+
----------------------------------------------------------------------------
|
657
|
+
PushType::NodesController::POST #position::prepend node: test_0002_anonymous
|
658
|
+
----------------------------------------------------------------------------
|
659
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
660
|
+
[1m[35mPushType::Node Exists (0.7ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
661
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.908291"], ["slug", "foo-bar-19"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.908291"]]
|
662
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta8bac448f2ecd61abb0bab26e45a64d3
|
663
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"], ["descendant_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"], ["generations", 0]]
|
664
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
665
|
+
SET "sort_order" = t.seq + -1
|
666
|
+
FROM (
|
667
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
668
|
+
FROM "push_type_nodes"
|
669
|
+
WHERE "parent_id" IS NULL
|
670
|
+
) AS t
|
671
|
+
WHERE "push_type_nodes"."id" = t.id
|
672
|
+
|
673
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
674
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
675
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tab5e71c295b9271f431044a790f02371[0m
|
676
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
678
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-20' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
679
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.918620"], ["slug", "foo-bar-20"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.918620"]]
|
680
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t5b7a5bd05e2429db5d0f79c685bf6ae0
|
681
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"], ["descendant_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"], ["generations", 0]]
|
682
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
683
|
+
SET "sort_order" = t.seq + -1
|
684
|
+
FROM (
|
685
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
686
|
+
FROM "push_type_nodes"
|
687
|
+
WHERE "parent_id" IS NULL
|
688
|
+
) AS t
|
689
|
+
WHERE "push_type_nodes"."id" = t.id
|
690
|
+
|
691
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
|
692
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
|
693
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tddebba1cfa464a004f01ec4775c1392e[0m
|
694
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
695
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
696
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-21' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
697
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.926449"], ["slug", "foo-bar-21"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.926449"]]
|
698
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tb0a196e782874d2f0d08198c16662513
|
699
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"], ["descendant_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"], ["generations", 0]]
|
700
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
701
|
+
SET "sort_order" = t.seq + -1
|
702
|
+
FROM (
|
703
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
704
|
+
FROM "push_type_nodes"
|
705
|
+
WHERE "parent_id" IS NULL
|
706
|
+
) AS t
|
707
|
+
WHERE "push_type_nodes"."id" = t.id
|
708
|
+
|
709
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
|
710
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
|
711
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t98d65acc72e0225a99668acefbcf4b2a[0m
|
712
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
713
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
714
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-22' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
715
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.934757"], ["slug", "foo-bar-22"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.934757"]]
|
716
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t4dcb1e7fd4253651f3ea09809a331b48
|
717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"], ["descendant_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"], ["generations", 0]]
|
718
|
+
[1m[35m (0.8ms)[0m UPDATE "push_type_nodes"
|
719
|
+
SET "sort_order" = t.seq + -1
|
720
|
+
FROM (
|
721
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
722
|
+
FROM "push_type_nodes"
|
723
|
+
WHERE "parent_id" IS NULL
|
724
|
+
) AS t
|
725
|
+
WHERE "push_type_nodes"."id" = t.id
|
726
|
+
|
727
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
|
728
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
|
729
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS te6addff82fc9f83e20ebffecb4face55[0m
|
730
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
731
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
732
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
733
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:26.944178"], ["slug", "foo-bar-23"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.944178"]]
|
734
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t6fdf605be919b9d770eb3ee02c1290f1
|
735
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "c9d0112f-0282-434b-9381-3c7224ce3359"], ["descendant_id", "c9d0112f-0282-434b-9381-3c7224ce3359"], ["generations", 0]]
|
736
|
+
[1m[35m (0.8ms)[0m UPDATE "push_type_nodes"
|
737
|
+
SET "sort_order" = t.seq + -1
|
738
|
+
FROM (
|
739
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
740
|
+
FROM "push_type_nodes"
|
741
|
+
WHERE "parent_id" IS NULL
|
742
|
+
) AS t
|
743
|
+
WHERE "push_type_nodes"."id" = t.id
|
744
|
+
|
745
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
|
746
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
|
747
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t62028de745af4a2c0b5a82fd84cafe76[0m
|
748
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
749
|
+
Processing by PushType::NodesController#position as HTML
|
750
|
+
Parameters: {"next"=>"5f5f52d9-56d1-47d8-a673-9089571bb121", "id"=>"c9d0112f-0282-434b-9381-3c7224ce3359"}
|
751
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
|
752
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
753
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
754
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."id" != '5f5f52d9-56d1-47d8-a673-9089571bb121' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
755
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
756
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tdcc2dea1b76d9a6e5e495bc745178998
|
757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
758
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."id" != 'c9d0112f-0282-434b-9381-3c7224ce3359' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
759
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'c9d0112f-0282-434b-9381-3c7224ce3359'[0m [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.960738"]]
|
760
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
761
|
+
SET "sort_order" = t.seq + -1
|
762
|
+
FROM (
|
763
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
764
|
+
FROM "push_type_nodes"
|
765
|
+
WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
|
766
|
+
) AS t
|
767
|
+
WHERE "push_type_nodes"."id" = t.id
|
768
|
+
|
769
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
770
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
771
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
|
772
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = '5f5f52d9-56d1-47d8-a673-9089571bb121'
|
773
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = 'c9d0112f-0282-434b-9381-3c7224ce3359'[0m
|
774
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
775
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t35196512d40ca44025d79f67fc2566d0[0m
|
776
|
+
Completed 200 OK in 12ms (ActiveRecord: 3.6ms)
|
777
|
+
Processing by PushType::NodesController#index as HTML
|
778
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
779
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
780
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
781
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
|
782
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
|
783
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
|
784
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
|
785
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
|
786
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
787
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
|
788
|
+
Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.6ms)
|
789
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0[0m
|
790
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
791
|
+
[1m[36m (6.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
792
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
793
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
794
|
+
[1m[35m (0.1ms)[0m BEGIN
|
795
|
+
----------------------------------------------------------
|
796
|
+
PushType::AssetsController::GET #edit: test_0001_anonymous
|
797
|
+
----------------------------------------------------------
|
798
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.009116"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.009116"]]
|
800
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
801
|
+
Processing by PushType::AssetsController#edit as HTML
|
802
|
+
Parameters: {"id"=>"13213cbc-3e56-4b1b-bcb7-aa4e5648b718"}
|
803
|
+
[1m[35mPushType::Asset Load (0.7ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "13213cbc-3e56-4b1b-bcb7-aa4e5648b718"]]
|
804
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (17.7ms)
|
805
|
+
Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.7ms)
|
806
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
807
|
+
[1m[35m (6.3ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
808
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
809
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
810
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
811
|
+
----------------------------------------------------------
|
812
|
+
PushType::AssetsController::GET #edit: test_0002_anonymous
|
813
|
+
----------------------------------------------------------
|
814
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
815
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.060238"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.060238"]]
|
816
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
817
|
+
Processing by PushType::AssetsController#edit as HTML
|
818
|
+
Parameters: {"id"=>"5066f201-1e08-4989-85d1-d77be45f63a7"}
|
819
|
+
[1m[36mPushType::Asset Load (0.4ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1[0m [["id", "5066f201-1e08-4989-85d1-d77be45f63a7"]]
|
820
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.4ms)
|
821
|
+
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)
|
822
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
823
|
+
[1m[36m (6.1ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
824
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
825
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
826
|
+
[1m[35m (0.1ms)[0m BEGIN
|
827
|
+
-----------------------------------------------------------------------------
|
828
|
+
PushType::NodesController::POST #create::with valid node: test_0001_anonymous
|
829
|
+
-----------------------------------------------------------------------------
|
830
|
+
Processing by PushType::NodesController#create as HTML
|
831
|
+
Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-24"}}
|
832
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
833
|
+
[1m[35mPushType::Node Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-24' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
834
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.095091"], ["slug", "foo-bar-24"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.095091"]]
|
835
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tf71ea667052d1900c5ccf23c65a3e1c4
|
836
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "8323e17c-5013-441a-bc09-d78b215e29fb"], ["descendant_id", "8323e17c-5013-441a-bc09-d78b215e29fb"], ["generations", 0]]
|
837
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
838
|
+
SET "sort_order" = t.seq + -1
|
839
|
+
FROM (
|
840
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
841
|
+
FROM "push_type_nodes"
|
842
|
+
WHERE "parent_id" IS NULL
|
843
|
+
) AS t
|
844
|
+
WHERE "push_type_nodes"."id" = t.id
|
845
|
+
|
846
|
+
[1m[36mPage Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "8323e17c-5013-441a-bc09-d78b215e29fb"]]
|
847
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8323e17c-5013-441a-bc09-d78b215e29fb"]]
|
848
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t15a0a96c8b2a42865319c2ddd285f652[0m
|
849
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
850
|
+
Redirected to http://test.host/push_type/nodes
|
851
|
+
Completed 302 Found in 14ms (ActiveRecord: 3.5ms)
|
852
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
853
|
+
[1m[35m (6.2ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
854
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
855
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
856
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
857
|
+
-----------------------------------------------------------------------------
|
858
|
+
PushType::NodesController::POST #create::with valid node: test_0002_anonymous
|
859
|
+
-----------------------------------------------------------------------------
|
860
|
+
Processing by PushType::NodesController#create as HTML
|
861
|
+
Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-25"}}
|
862
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
863
|
+
[1m[36mPushType::Node Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-25' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
864
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.124826"], ["slug", "foo-bar-25"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.124826"]]
|
865
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS td7b0ff15efa74f01a17b651b66c99565[0m
|
866
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"], ["descendant_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"], ["generations", 0]]
|
867
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
868
|
+
SET "sort_order" = t.seq + -1
|
869
|
+
FROM (
|
870
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
871
|
+
FROM "push_type_nodes"
|
872
|
+
WHERE "parent_id" IS NULL
|
873
|
+
) AS t
|
874
|
+
WHERE "push_type_nodes"."id" = t.id
|
875
|
+
[0m
|
876
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"]]
|
877
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"]]
|
878
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t17362d99af2a94b4d9886b71a9b019ad
|
879
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
880
|
+
Redirected to http://test.host/push_type/nodes
|
881
|
+
Completed 302 Found in 14ms (ActiveRecord: 3.9ms)
|
882
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
883
|
+
[1m[36m (6.1ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
884
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
885
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
886
|
+
[1m[35m (0.1ms)[0m BEGIN
|
887
|
+
--------------------------------------------------------------------------------
|
888
|
+
PushType::NodesController::POST #create::with in-valid node: test_0001_anonymous
|
889
|
+
--------------------------------------------------------------------------------
|
890
|
+
Processing by PushType::NodesController#create as HTML
|
891
|
+
Parameters: {"kind"=>"page", "page"=>{}}
|
892
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
893
|
+
[1m[35mPushType::Node Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
894
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
895
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (2.2ms)
|
896
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (28.6ms)
|
897
|
+
Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 0.7ms)
|
898
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
899
|
+
[1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
900
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
901
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
902
|
+
[1m[35m (0.1ms)[0m BEGIN
|
903
|
+
--------------------------------------------------------------------------------
|
904
|
+
PushType::NodesController::POST #create::with in-valid node: test_0002_anonymous
|
905
|
+
--------------------------------------------------------------------------------
|
906
|
+
Processing by PushType::NodesController#create as HTML
|
907
|
+
Parameters: {"kind"=>"page", "page"=>{}}
|
908
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
909
|
+
[1m[35mPushType::Node Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
910
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
911
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
|
912
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (13.0ms)
|
913
|
+
Completed 200 OK in 25ms (Views: 18.2ms | ActiveRecord: 0.9ms)
|
914
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
915
|
+
[1m[36m (5.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
916
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
917
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
918
|
+
[1m[35m (0.1ms)[0m BEGIN
|
919
|
+
-------------------------------------------------------------------------------
|
920
|
+
PushType::AssetsController::POST #create::with valid asset: test_0001_anonymous
|
921
|
+
-------------------------------------------------------------------------------
|
922
|
+
Processing by PushType::AssetsController#create as HTML
|
923
|
+
Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0f4924f98 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-d5n438>>}}
|
924
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
925
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.259320"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.259320"]]
|
926
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
927
|
+
Redirected to http://test.host/push_type/media
|
928
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
929
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
930
|
+
[1m[36m (6.4ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
931
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
932
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
933
|
+
[1m[35m (0.2ms)[0m BEGIN
|
934
|
+
-------------------------------------------------------------------------------
|
935
|
+
PushType::AssetsController::POST #create::with valid asset: test_0002_anonymous
|
936
|
+
-------------------------------------------------------------------------------
|
937
|
+
Processing by PushType::AssetsController#create as HTML
|
938
|
+
Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0f8f02650 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-15q6kql>>}}
|
939
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
940
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.280475"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.280475"]]
|
941
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
942
|
+
Redirected to http://test.host/push_type/media
|
943
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
|
944
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
945
|
+
[1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
946
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
947
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
948
|
+
[1m[35m (0.2ms)[0m BEGIN
|
949
|
+
----------------------------------------------------------------------------
|
950
|
+
PushType::UsersController::PUT #update::with valid user: test_0001_anonymous
|
951
|
+
----------------------------------------------------------------------------
|
952
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
953
|
+
[1m[35mPushType::User Exists (0.7ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
|
954
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.302727"], ["email", "joe-3@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.302727"]]
|
955
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
956
|
+
Processing by PushType::UsersController#update as HTML
|
957
|
+
Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"d4e1a183-f666-45f7-b254-30f9c3c67b6f"}
|
958
|
+
[1m[36mPushType::User Load (0.5ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "d4e1a183-f666-45f7-b254-30f9c3c67b6f"]]
|
959
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
960
|
+
[1m[36mPushType::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != 'd4e1a183-f666-45f7-b254-30f9c3c67b6f') LIMIT 1[0m
|
961
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = 'd4e1a183-f666-45f7-b254-30f9c3c67b6f' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.310845"]]
|
962
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
963
|
+
Redirected to http://test.host/push_type/users
|
964
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
|
965
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
966
|
+
[1m[36m (5.7ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
967
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
968
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
969
|
+
[1m[35m (0.2ms)[0m BEGIN
|
970
|
+
----------------------------------------------------------------------------
|
971
|
+
PushType::UsersController::PUT #update::with valid user: test_0002_anonymous
|
972
|
+
----------------------------------------------------------------------------
|
973
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
974
|
+
[1m[35mPushType::User Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
|
975
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.328470"], ["email", "joe-4@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.328470"]]
|
976
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
977
|
+
Processing by PushType::UsersController#update as HTML
|
978
|
+
Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"8ea48298-bbb2-4eac-8d29-a9a0e84b0d50"}
|
979
|
+
[1m[36mPushType::User Load (0.4ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "8ea48298-bbb2-4eac-8d29-a9a0e84b0d50"]]
|
980
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
981
|
+
[1m[36mPushType::User Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != '8ea48298-bbb2-4eac-8d29-a9a0e84b0d50') LIMIT 1[0m
|
982
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '8ea48298-bbb2-4eac-8d29-a9a0e84b0d50' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.336537"]]
|
983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
984
|
+
Redirected to http://test.host/push_type/users
|
985
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
|
986
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
987
|
+
[1m[36m (5.5ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
988
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
989
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
990
|
+
[1m[35m (0.2ms)[0m BEGIN
|
991
|
+
----------------------------------------------------------------------------
|
992
|
+
PushType::UsersController::PUT #update::with valid user: test_0003_anonymous
|
993
|
+
----------------------------------------------------------------------------
|
994
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
995
|
+
[1m[35mPushType::User Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
|
996
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.354678"], ["email", "joe-5@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.354678"]]
|
997
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
998
|
+
Processing by PushType::UsersController#update as HTML
|
999
|
+
Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"8fed6949-70c9-459e-97bd-7fe11f31a22c"}
|
1000
|
+
[1m[36mPushType::User Load (0.3ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "8fed6949-70c9-459e-97bd-7fe11f31a22c"]]
|
1001
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1002
|
+
[1m[36mPushType::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != '8fed6949-70c9-459e-97bd-7fe11f31a22c') LIMIT 1[0m
|
1003
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '8fed6949-70c9-459e-97bd-7fe11f31a22c' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.359840"]]
|
1004
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1005
|
+
Redirected to http://test.host/push_type/users
|
1006
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
1007
|
+
[1m[35mPushType::User Load (0.3ms)[0m SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "8fed6949-70c9-459e-97bd-7fe11f31a22c"]]
|
1008
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1009
|
+
[1m[35m (6.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1010
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1011
|
+
[1m[35m (2.1ms)[0m ROLLBACK
|
1012
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1013
|
+
---------------------------------------------------------
|
1014
|
+
PushType::NodesController::GET #edit: test_0001_anonymous
|
1015
|
+
---------------------------------------------------------
|
1016
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1017
|
+
[1m[36mPushType::Node Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1018
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.382265"], ["slug", "foo-bar-26"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.382265"]]
|
1019
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t92a918d0963071328bb2ef64ec411e58[0m
|
1020
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"], ["descendant_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"], ["generations", 0]]
|
1021
|
+
[1m[36m (0.7ms)[0m [1mUPDATE "push_type_nodes"
|
1022
|
+
SET "sort_order" = t.seq + -1
|
1023
|
+
FROM (
|
1024
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1025
|
+
FROM "push_type_nodes"
|
1026
|
+
WHERE "parent_id" IS NULL
|
1027
|
+
) AS t
|
1028
|
+
WHERE "push_type_nodes"."id" = t.id
|
1029
|
+
[0m
|
1030
|
+
[1m[35mPage Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
|
1031
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
|
1032
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tb5a549b92568aa0f572cc479adfb0e77
|
1033
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1034
|
+
Processing by PushType::NodesController#edit as HTML
|
1035
|
+
Parameters: {"id"=>"4a51f930-6d9f-417c-b907-7c16f8d62a39"}
|
1036
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
|
1037
|
+
[1m[36mPushType::Node Load (0.6ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '4a51f930-6d9f-417c-b907-7c16f8d62a39') ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
|
1038
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
|
1039
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (14.2ms)
|
1040
|
+
Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 0.9ms)
|
1041
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1042
|
+
[1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1043
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1044
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
1045
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1046
|
+
---------------------------------------------------------
|
1047
|
+
PushType::NodesController::GET #edit: test_0002_anonymous
|
1048
|
+
---------------------------------------------------------
|
1049
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1050
|
+
[1m[35mPushType::Node Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1051
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.446153"], ["slug", "foo-bar-27"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.446153"]]
|
1052
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te6cca5b7634f7fb5ceedf2fd33833d1a
|
1053
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "49b105f1-c807-4618-9464-1fff731a8d5b"], ["descendant_id", "49b105f1-c807-4618-9464-1fff731a8d5b"], ["generations", 0]]
|
1054
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
1055
|
+
SET "sort_order" = t.seq + -1
|
1056
|
+
FROM (
|
1057
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1058
|
+
FROM "push_type_nodes"
|
1059
|
+
WHERE "parent_id" IS NULL
|
1060
|
+
) AS t
|
1061
|
+
WHERE "push_type_nodes"."id" = t.id
|
1062
|
+
|
1063
|
+
[1m[36mPage Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
|
1064
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
|
1065
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t05e6963783f70c941abd07a67b99a79c[0m
|
1066
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1067
|
+
Processing by PushType::NodesController#edit as HTML
|
1068
|
+
Parameters: {"id"=>"49b105f1-c807-4618-9464-1fff731a8d5b"}
|
1069
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
|
1070
|
+
[1m[35mPushType::Node Load (0.5ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '49b105f1-c807-4618-9464-1fff731a8d5b') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
|
1071
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
|
1072
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.9ms)
|
1073
|
+
Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.9ms)
|
1074
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1075
|
+
[1m[35m (8.0ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1076
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1077
|
+
[1m[35m (2.1ms)[0m ROLLBACK
|
1078
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1079
|
+
----------------------------------------------------------
|
1080
|
+
PushType::NodesController::GET #index: test_0001_anonymous
|
1081
|
+
----------------------------------------------------------
|
1082
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1083
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-28' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1084
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.501681"], ["slug", "foo-bar-28"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.501681"]]
|
1085
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t2d9a2a7bfee6a18c16008db1f9e163d1[0m
|
1086
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"], ["descendant_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"], ["generations", 0]]
|
1087
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
1088
|
+
SET "sort_order" = t.seq + -1
|
1089
|
+
FROM (
|
1090
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1091
|
+
FROM "push_type_nodes"
|
1092
|
+
WHERE "parent_id" IS NULL
|
1093
|
+
) AS t
|
1094
|
+
WHERE "push_type_nodes"."id" = t.id
|
1095
|
+
[0m
|
1096
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
|
1097
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
|
1098
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t1803573d17e8f077a8c2e8d37f45d0b9
|
1099
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1101
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1102
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.512728"], ["slug", "foo-bar-29"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.512728"]]
|
1103
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t191c4b8f56ddd26dce431a50585b4302[0m
|
1104
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"], ["descendant_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"], ["generations", 0]]
|
1105
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1106
|
+
SET "sort_order" = t.seq + -1
|
1107
|
+
FROM (
|
1108
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1109
|
+
FROM "push_type_nodes"
|
1110
|
+
WHERE "parent_id" IS NULL
|
1111
|
+
) AS t
|
1112
|
+
WHERE "push_type_nodes"."id" = t.id
|
1113
|
+
[0m
|
1114
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
|
1115
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
|
1116
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t5b66e9b1fa929ed93ba7b79906c1e630
|
1117
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1119
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1120
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.520784"], ["slug", "foo-bar-30"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.520784"]]
|
1121
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t9965bd6319b0bce28ec32448b6e7050a[0m
|
1122
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"], ["descendant_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"], ["generations", 0]]
|
1123
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "push_type_nodes"
|
1124
|
+
SET "sort_order" = t.seq + -1
|
1125
|
+
FROM (
|
1126
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1127
|
+
FROM "push_type_nodes"
|
1128
|
+
WHERE "parent_id" IS NULL
|
1129
|
+
) AS t
|
1130
|
+
WHERE "push_type_nodes"."id" = t.id
|
1131
|
+
[0m
|
1132
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
|
1133
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
|
1134
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t09b533d27842f842f16b5ffddb3206f4
|
1135
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1136
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1137
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-31' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1138
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.531972"], ["slug", "foo-bar-31"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.531972"]]
|
1139
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t4ff93c12a6ba9800ccd0a8f793df5ff5[0m
|
1140
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8738c630-fedd-4ae1-b16e-b358921d791a"], ["descendant_id", "8738c630-fedd-4ae1-b16e-b358921d791a"], ["generations", 0]]
|
1141
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1142
|
+
SET "sort_order" = t.seq + -1
|
1143
|
+
FROM (
|
1144
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1145
|
+
FROM "push_type_nodes"
|
1146
|
+
WHERE "parent_id" IS NULL
|
1147
|
+
) AS t
|
1148
|
+
WHERE "push_type_nodes"."id" = t.id
|
1149
|
+
[0m
|
1150
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
|
1151
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
|
1152
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t30ce127f5565b424c54b639628d3f67f
|
1153
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1154
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1155
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1156
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.540828"], ["slug", "foo-bar-32"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.540828"]]
|
1157
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t806b1991edb970e7ce11c75be44f285b[0m
|
1158
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"], ["descendant_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"], ["generations", 0]]
|
1159
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
1160
|
+
SET "sort_order" = t.seq + -1
|
1161
|
+
FROM (
|
1162
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1163
|
+
FROM "push_type_nodes"
|
1164
|
+
WHERE "parent_id" IS NULL
|
1165
|
+
) AS t
|
1166
|
+
WHERE "push_type_nodes"."id" = t.id
|
1167
|
+
[0m
|
1168
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
|
1169
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
|
1170
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t0b483ee29e577b28b35087b48d541153
|
1171
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1172
|
+
Processing by PushType::NodesController#index as HTML
|
1173
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
1174
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1175
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
1176
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
|
1177
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
|
1178
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
|
1179
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
|
1180
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
|
1181
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
1182
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
|
1183
|
+
Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 2.6ms)
|
1184
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1185
|
+
[1m[35m (5.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1186
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1187
|
+
[1m[35m (2.1ms)[0m ROLLBACK
|
1188
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1189
|
+
----------------------------------------------------------
|
1190
|
+
PushType::NodesController::GET #index: test_0002_anonymous
|
1191
|
+
----------------------------------------------------------
|
1192
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1193
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-33' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1194
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.588275"], ["slug", "foo-bar-33"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.588275"]]
|
1195
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tc479aa6aceb13a98c3cd0cce12296107[0m
|
1196
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"], ["descendant_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"], ["generations", 0]]
|
1197
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1198
|
+
SET "sort_order" = t.seq + -1
|
1199
|
+
FROM (
|
1200
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1201
|
+
FROM "push_type_nodes"
|
1202
|
+
WHERE "parent_id" IS NULL
|
1203
|
+
) AS t
|
1204
|
+
WHERE "push_type_nodes"."id" = t.id
|
1205
|
+
[0m
|
1206
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
|
1207
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
|
1208
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tad03b951541f16170ce0da2ccc784749
|
1209
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1210
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-34' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1212
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.596999"], ["slug", "foo-bar-34"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.596999"]]
|
1213
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t51c0ce63260ccbdd4d7b49af0bffe457[0m
|
1214
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"], ["descendant_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"], ["generations", 0]]
|
1215
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "push_type_nodes"
|
1216
|
+
SET "sort_order" = t.seq + -1
|
1217
|
+
FROM (
|
1218
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1219
|
+
FROM "push_type_nodes"
|
1220
|
+
WHERE "parent_id" IS NULL
|
1221
|
+
) AS t
|
1222
|
+
WHERE "push_type_nodes"."id" = t.id
|
1223
|
+
[0m
|
1224
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
|
1225
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
|
1226
|
+
[1m[35m (0.3ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tf0c7b7afa30131775179b74003cbe782
|
1227
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1228
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1229
|
+
[1m[36mPushType::Node Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-35' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1230
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.608133"], ["slug", "foo-bar-35"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.608133"]]
|
1231
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tc713bebb2df893ceddd4bbcca297963a[0m
|
1232
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "95130f50-c364-4f6c-9228-6be907b2d80e"], ["descendant_id", "95130f50-c364-4f6c-9228-6be907b2d80e"], ["generations", 0]]
|
1233
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "push_type_nodes"
|
1234
|
+
SET "sort_order" = t.seq + -1
|
1235
|
+
FROM (
|
1236
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1237
|
+
FROM "push_type_nodes"
|
1238
|
+
WHERE "parent_id" IS NULL
|
1239
|
+
) AS t
|
1240
|
+
WHERE "push_type_nodes"."id" = t.id
|
1241
|
+
[0m
|
1242
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
|
1243
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
|
1244
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tc3e9cb0b8e80bfa3a82f2933d4fd8a1f
|
1245
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1246
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1247
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-36' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1248
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.618671"], ["slug", "foo-bar-36"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.618671"]]
|
1249
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t28d31b26146cb00e6cff49e854961ee1[0m
|
1250
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0c417370-0ff7-4412-9e51-07318a88f694"], ["descendant_id", "0c417370-0ff7-4412-9e51-07318a88f694"], ["generations", 0]]
|
1251
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1252
|
+
SET "sort_order" = t.seq + -1
|
1253
|
+
FROM (
|
1254
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1255
|
+
FROM "push_type_nodes"
|
1256
|
+
WHERE "parent_id" IS NULL
|
1257
|
+
) AS t
|
1258
|
+
WHERE "push_type_nodes"."id" = t.id
|
1259
|
+
[0m
|
1260
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
|
1261
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
|
1262
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t90c8a462d73f0d4550069abc46e3e48b
|
1263
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1264
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1265
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-37' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1266
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.627848"], ["slug", "foo-bar-37"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.627848"]]
|
1267
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS ted955cd3c03bc580d1799e77bb3e2719[0m
|
1268
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"], ["descendant_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"], ["generations", 0]]
|
1269
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
1270
|
+
SET "sort_order" = t.seq + -1
|
1271
|
+
FROM (
|
1272
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1273
|
+
FROM "push_type_nodes"
|
1274
|
+
WHERE "parent_id" IS NULL
|
1275
|
+
) AS t
|
1276
|
+
WHERE "push_type_nodes"."id" = t.id
|
1277
|
+
[0m
|
1278
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
|
1279
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
|
1280
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t821bad8ae4e9af7d42db42ca5bab4fb2
|
1281
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1282
|
+
Processing by PushType::NodesController#index as HTML
|
1283
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
1284
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1285
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
1286
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
|
1287
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
|
1288
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
|
1289
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
|
1290
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
|
1291
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
1292
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.6ms)
|
1293
|
+
Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.9ms)
|
1294
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1295
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1296
|
+
[1m[36m (8.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1297
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1298
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
1299
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1300
|
+
--------------------------------------------------------------------------
|
1301
|
+
PushType::AssetsHelper::#asset_icon::with video asset: test_0001_anonymous
|
1302
|
+
--------------------------------------------------------------------------
|
1303
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1304
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.686497"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "6"], ["mime_type", "video/mp4"], ["updated_at", "2014-12-05 21:35:27.686497"]]
|
1305
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1306
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1307
|
+
[1m[36m (5.7ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1308
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1309
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
1310
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1311
|
+
--------------------------------------------------------------------------------
|
1312
|
+
PushType::UsersController::POST #create::with in-valid user: test_0001_anonymous
|
1313
|
+
--------------------------------------------------------------------------------
|
1314
|
+
Processing by PushType::UsersController#create as HTML
|
1315
|
+
Parameters: {"user"=>{}}
|
1316
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1317
|
+
[1m[35mPushType::User Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1
|
1318
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1319
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
1320
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.9ms)
|
1321
|
+
Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.9ms)
|
1322
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1323
|
+
[1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1324
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1325
|
+
[1m[36m (1.7ms)[0m [1mROLLBACK[0m
|
1326
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1327
|
+
--------------------------------------------------------------------------------
|
1328
|
+
PushType::UsersController::POST #create::with in-valid user: test_0002_anonymous
|
1329
|
+
--------------------------------------------------------------------------------
|
1330
|
+
Processing by PushType::UsersController#create as HTML
|
1331
|
+
Parameters: {"user"=>{}}
|
1332
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1333
|
+
[1m[35mPushType::User Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1
|
1334
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1335
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
1336
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.3ms)
|
1337
|
+
Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.8ms)
|
1338
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1339
|
+
[1m[36m (5.5ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1340
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1341
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
1342
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1343
|
+
--------------------------------------------------------------------------
|
1344
|
+
PushType::AssetsController::POST #create::asset count: test_0001_anonymous
|
1345
|
+
--------------------------------------------------------------------------
|
1346
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "push_type_assets"[0m
|
1347
|
+
Processing by PushType::AssetsController#create as HTML
|
1348
|
+
Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0fb4c7610 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-1dy56no>>}}
|
1349
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1350
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.762610"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.762610"]]
|
1351
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1352
|
+
Redirected to http://test.host/push_type/media
|
1353
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
|
1354
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "push_type_assets"[0m
|
1355
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1356
|
+
[1m[36m (7.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1357
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1358
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
1359
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1360
|
+
---------------------------------------------------------
|
1361
|
+
PushType::UsersController::GET #edit: test_0001_anonymous
|
1362
|
+
---------------------------------------------------------
|
1363
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1364
|
+
[1m[35mPushType::User Exists (0.5ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
|
1365
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.784927"], ["email", "joe-6@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.784927"]]
|
1366
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1367
|
+
Processing by PushType::UsersController#edit as HTML
|
1368
|
+
Parameters: {"id"=>"3cb24305-4ccc-4daa-b837-763d67647501"}
|
1369
|
+
[1m[36mPushType::User Load (0.5ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "3cb24305-4ccc-4daa-b837-763d67647501"]]
|
1370
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
1371
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
|
1372
|
+
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
|
1373
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1374
|
+
[1m[36m (6.4ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1375
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1376
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
1377
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1378
|
+
---------------------------------------------------------
|
1379
|
+
PushType::UsersController::GET #edit: test_0002_anonymous
|
1380
|
+
---------------------------------------------------------
|
1381
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1382
|
+
[1m[35mPushType::User Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
|
1383
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.813613"], ["email", "joe-7@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.813613"]]
|
1384
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1385
|
+
Processing by PushType::UsersController#edit as HTML
|
1386
|
+
Parameters: {"id"=>"54c54ac0-7cb2-462a-a449-7b1741736baa"}
|
1387
|
+
[1m[36mPushType::User Load (0.4ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "54c54ac0-7cb2-462a-a449-7b1741736baa"]]
|
1388
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
|
1389
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.5ms)
|
1390
|
+
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
|
1391
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1392
|
+
[1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1393
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1394
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
1395
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1396
|
+
----------------------------------------------------------
|
1397
|
+
PushType::UsersController::GET #index: test_0001_anonymous
|
1398
|
+
----------------------------------------------------------
|
1399
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1400
|
+
[1m[35mPushType::User Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
|
1401
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.841134"], ["email", "joe-8@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.841134"]]
|
1402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1403
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1404
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
|
1405
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.844433"], ["email", "joe-9@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.844433"]]
|
1406
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1407
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1408
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
|
1409
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.847830"], ["email", "joe-10@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.847830"]]
|
1410
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1411
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1412
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
|
1413
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.850810"], ["email", "joe-11@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.850810"]]
|
1414
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1415
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1416
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
|
1417
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.853454"], ["email", "joe-12@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.853454"]]
|
1418
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1419
|
+
Processing by PushType::UsersController#index as HTML
|
1420
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1421
|
+
[1m[35mPushType::User Load (0.3ms)[0m SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0
|
1422
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (2.3ms)
|
1423
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1424
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.6ms)
|
1425
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1426
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.3ms)
|
1427
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "push_type_users"[0m
|
1428
|
+
Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 1.1ms)
|
1429
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1430
|
+
[1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1431
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1432
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
1433
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1434
|
+
----------------------------------------------------------
|
1435
|
+
PushType::UsersController::GET #index: test_0002_anonymous
|
1436
|
+
----------------------------------------------------------
|
1437
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1438
|
+
[1m[35mPushType::User Exists (0.7ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
|
1439
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.891515"], ["email", "joe-13@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.891515"]]
|
1440
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1441
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1442
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
|
1443
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.894969"], ["email", "joe-14@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.894969"]]
|
1444
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1446
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
|
1447
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.897895"], ["email", "joe-15@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.897895"]]
|
1448
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1450
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
|
1451
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.900649"], ["email", "joe-16@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.900649"]]
|
1452
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1453
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1454
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
|
1455
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.903231"], ["email", "joe-17@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.903231"]]
|
1456
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1457
|
+
Processing by PushType::UsersController#index as HTML
|
1458
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1459
|
+
[1m[35mPushType::User Load (0.3ms)[0m SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0
|
1460
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.6ms)
|
1461
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1462
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1463
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1464
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
|
1465
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "push_type_users"[0m
|
1466
|
+
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 1.1ms)
|
1467
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count
|
1468
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1469
|
+
[1m[35m (6.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1470
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1471
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
1472
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1473
|
+
--------------------------------------------------------------------------
|
1474
|
+
PushType::AssetsHelper::#asset_icon::with audio asset: test_0001_anonymous
|
1475
|
+
--------------------------------------------------------------------------
|
1476
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1477
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.941280"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "8"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2014-12-05 21:35:27.941280"]]
|
1478
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1479
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1480
|
+
[1m[35m (6.1ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1481
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1482
|
+
[1m[35m (1.9ms)[0m ROLLBACK
|
1483
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1484
|
+
------------------------------------------------------------------------------
|
1485
|
+
PushType::AssetsController::PUT #update::with valid asset: test_0001_anonymous
|
1486
|
+
------------------------------------------------------------------------------
|
1487
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1488
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.961577"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.961577"]]
|
1489
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1490
|
+
Processing by PushType::AssetsController#update as HTML
|
1491
|
+
Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"7ec0888c-6938-4d4c-a3bb-a74105796e00"}
|
1492
|
+
[1m[36mPushType::Asset Load (0.4ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1[0m [["id", "7ec0888c-6938-4d4c-a3bb-a74105796e00"]]
|
1493
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1494
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '7ec0888c-6938-4d4c-a3bb-a74105796e00'[0m [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.967553"]]
|
1495
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1496
|
+
Redirected to http://test.host/push_type/media
|
1497
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
1498
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1499
|
+
[1m[35m (5.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1500
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1501
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
1502
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1503
|
+
------------------------------------------------------------------------------
|
1504
|
+
PushType::AssetsController::PUT #update::with valid asset: test_0002_anonymous
|
1505
|
+
------------------------------------------------------------------------------
|
1506
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1507
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:27.985494"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.985494"]]
|
1508
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1509
|
+
Processing by PushType::AssetsController#update as HTML
|
1510
|
+
Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"71e9334d-acad-4c83-9863-628da0de2333"}
|
1511
|
+
[1m[36mPushType::Asset Load (0.4ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1[0m [["id", "71e9334d-acad-4c83-9863-628da0de2333"]]
|
1512
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1513
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '71e9334d-acad-4c83-9863-628da0de2333'[0m [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.991359"]]
|
1514
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1515
|
+
Redirected to http://test.host/push_type/media
|
1516
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
|
1517
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1518
|
+
[1m[35m (5.7ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1519
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1520
|
+
[1m[35m (1.9ms)[0m ROLLBACK
|
1521
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1522
|
+
------------------------------------------------------------------------------
|
1523
|
+
PushType::AssetsController::PUT #update::with valid asset: test_0003_anonymous
|
1524
|
+
------------------------------------------------------------------------------
|
1525
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1526
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.011057"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.011057"]]
|
1527
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1528
|
+
Processing by PushType::AssetsController#update as HTML
|
1529
|
+
Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"c42f6deb-6cfb-495e-a10c-81be1ebdc936"}
|
1530
|
+
[1m[36mPushType::Asset Load (0.4ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1[0m [["id", "c42f6deb-6cfb-495e-a10c-81be1ebdc936"]]
|
1531
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1532
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = 'c42f6deb-6cfb-495e-a10c-81be1ebdc936'[0m [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:28.017324"]]
|
1533
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1534
|
+
Redirected to http://test.host/push_type/media
|
1535
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
1536
|
+
[1m[36mPushType::Asset Load (0.4ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1[0m [["id", "c42f6deb-6cfb-495e-a10c-81be1ebdc936"]]
|
1537
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1538
|
+
[1m[36m (8.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1539
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1540
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
1541
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1542
|
+
-----------------------------------------------------------------------------
|
1543
|
+
PushType::UsersController::POST #create::with valid user: test_0001_anonymous
|
1544
|
+
-----------------------------------------------------------------------------
|
1545
|
+
Processing by PushType::UsersController#create as HTML
|
1546
|
+
Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-18@example.com"}}
|
1547
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1548
|
+
[1m[35mPushType::User Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
|
1549
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.045098"], ["email", "joe-18@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.045098"]]
|
1550
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1551
|
+
Redirected to http://test.host/push_type/users
|
1552
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
1553
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1554
|
+
[1m[35m (6.3ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1555
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1556
|
+
[1m[35m (1.9ms)[0m ROLLBACK
|
1557
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1558
|
+
-----------------------------------------------------------------------------
|
1559
|
+
PushType::UsersController::POST #create::with valid user: test_0002_anonymous
|
1560
|
+
-----------------------------------------------------------------------------
|
1561
|
+
Processing by PushType::UsersController#create as HTML
|
1562
|
+
Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-19@example.com"}}
|
1563
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1564
|
+
[1m[36mPushType::User Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1[0m
|
1565
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.065525"], ["email", "joe-19@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.065525"]]
|
1566
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1567
|
+
Redirected to http://test.host/push_type/users
|
1568
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
|
1569
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1570
|
+
[1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1571
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1572
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
1573
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1574
|
+
----------------------------------------------------------------
|
1575
|
+
PushType::AssetsController::DELETE #destroy: test_0001_anonymous
|
1576
|
+
----------------------------------------------------------------
|
1577
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1578
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.085925"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.085925"]]
|
1579
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1580
|
+
Processing by PushType::AssetsController#destroy as HTML
|
1581
|
+
Parameters: {"id"=>"4b6f8de2-8550-4421-b930-ebf15943f326"}
|
1582
|
+
[1m[35mPushType::Asset Load (0.4ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "4b6f8de2-8550-4421-b930-ebf15943f326"]]
|
1583
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1584
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '4b6f8de2-8550-4421-b930-ebf15943f326' [["deleted_at", "2014-12-05 21:35:28.090468"], ["updated_at", "2014-12-05 21:35:28.091279"]]
|
1585
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1586
|
+
Redirected to http://test.host/push_type/media
|
1587
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
|
1588
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1589
|
+
[1m[36m (5.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1590
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1591
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
1592
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1593
|
+
----------------------------------------------------------------
|
1594
|
+
PushType::AssetsController::DELETE #destroy: test_0002_anonymous
|
1595
|
+
----------------------------------------------------------------
|
1596
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1597
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.110146"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.110146"]]
|
1598
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1599
|
+
Processing by PushType::AssetsController#destroy as HTML
|
1600
|
+
Parameters: {"id"=>"e4d764ca-8e53-445b-88a4-14cda0376968"}
|
1601
|
+
[1m[35mPushType::Asset Load (0.4ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "e4d764ca-8e53-445b-88a4-14cda0376968"]]
|
1602
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1603
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = 'e4d764ca-8e53-445b-88a4-14cda0376968' [["deleted_at", "2014-12-05 21:35:28.114561"], ["updated_at", "2014-12-05 21:35:28.115080"]]
|
1604
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1605
|
+
Redirected to http://test.host/push_type/media
|
1606
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
1607
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1608
|
+
[1m[36m (6.2ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1609
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1610
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
1611
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1612
|
+
----------------------------------------------------------------
|
1613
|
+
PushType::AssetsController::DELETE #destroy: test_0003_anonymous
|
1614
|
+
----------------------------------------------------------------
|
1615
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1616
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.134386"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.134386"]]
|
1617
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1618
|
+
Processing by PushType::AssetsController#destroy as HTML
|
1619
|
+
Parameters: {"id"=>"16b3bad2-9361-4969-8149-9f675faf7fa8"}
|
1620
|
+
[1m[35mPushType::Asset Load (0.4ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "16b3bad2-9361-4969-8149-9f675faf7fa8"]]
|
1621
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1622
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '16b3bad2-9361-4969-8149-9f675faf7fa8' [["deleted_at", "2014-12-05 21:35:28.139584"], ["updated_at", "2014-12-05 21:35:28.140151"]]
|
1623
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1624
|
+
Redirected to http://test.host/push_type/media
|
1625
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
1626
|
+
[1m[35mPushType::Asset Load (0.4ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "16b3bad2-9361-4969-8149-9f675faf7fa8"]]
|
1627
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1628
|
+
[1m[35m (6.3ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1629
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1630
|
+
[1m[35m (2.1ms)[0m ROLLBACK
|
1631
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1632
|
+
-------------------------------------------------------------------------------
|
1633
|
+
PushType::NodesController::PUT #update::with in-valid node: test_0001_anonymous
|
1634
|
+
-------------------------------------------------------------------------------
|
1635
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1636
|
+
[1m[36mPushType::Node Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1637
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.162892"], ["slug", "foo-bar-38"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.162892"]]
|
1638
|
+
[1m[36m (0.3ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t4724bbd77d4a151dfe68549e62c1dc95[0m
|
1639
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"], ["descendant_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"], ["generations", 0]]
|
1640
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "push_type_nodes"
|
1641
|
+
SET "sort_order" = t.seq + -1
|
1642
|
+
FROM (
|
1643
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1644
|
+
FROM "push_type_nodes"
|
1645
|
+
WHERE "parent_id" IS NULL
|
1646
|
+
) AS t
|
1647
|
+
WHERE "push_type_nodes"."id" = t.id
|
1648
|
+
[0m
|
1649
|
+
[1m[35mPage Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
|
1650
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
|
1651
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tf1f537cdd72603e7fb9271c2ad7f12f2
|
1652
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1653
|
+
Processing by PushType::NodesController#update as HTML
|
1654
|
+
Parameters: {"page"=>{"title"=>""}, "id"=>"4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"}
|
1655
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
|
1656
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1657
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."id" != '4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1658
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1659
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
|
1660
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
|
1661
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (12.5ms)
|
1662
|
+
Completed 200 OK in 25ms (Views: 17.9ms | ActiveRecord: 1.6ms)
|
1663
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1664
|
+
[1m[35m (6.7ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1665
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1666
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
1667
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1668
|
+
-------------------------------------------------------------------------------
|
1669
|
+
PushType::NodesController::PUT #update::with in-valid node: test_0002_anonymous
|
1670
|
+
-------------------------------------------------------------------------------
|
1671
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1672
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1673
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.217660"], ["slug", "foo-bar-39"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.217660"]]
|
1674
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t3a4ad39b850b51e6ac90f9da5846dd15[0m
|
1675
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3b345baa-f211-4f95-8435-08bb728d381c"], ["descendant_id", "3b345baa-f211-4f95-8435-08bb728d381c"], ["generations", 0]]
|
1676
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "push_type_nodes"
|
1677
|
+
SET "sort_order" = t.seq + -1
|
1678
|
+
FROM (
|
1679
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1680
|
+
FROM "push_type_nodes"
|
1681
|
+
WHERE "parent_id" IS NULL
|
1682
|
+
) AS t
|
1683
|
+
WHERE "push_type_nodes"."id" = t.id
|
1684
|
+
[0m
|
1685
|
+
[1m[35mPage Load (0.5ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
|
1686
|
+
[1m[36mPushType::Node Load (0.5ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
|
1687
|
+
[1m[35m (0.3ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t98d9c9c7236873ad15f65ce5e0aa6e6d
|
1688
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1689
|
+
Processing by PushType::NodesController#update as HTML
|
1690
|
+
Parameters: {"page"=>{"title"=>""}, "id"=>"3b345baa-f211-4f95-8435-08bb728d381c"}
|
1691
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
|
1692
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1693
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."id" != '3b345baa-f211-4f95-8435-08bb728d381c' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1694
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1695
|
+
[1m[35mPushType::Node Load (0.5ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '3b345baa-f211-4f95-8435-08bb728d381c') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
|
1696
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
|
1697
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.5ms)
|
1698
|
+
Completed 200 OK in 27ms (Views: 22.1ms | ActiveRecord: 1.5ms)
|
1699
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1700
|
+
[1m[35m (6.2ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1701
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1702
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
1703
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1704
|
+
------------------------------------------------------------------------
|
1705
|
+
PushType::NodesController::POST #create::node count: test_0001_anonymous
|
1706
|
+
------------------------------------------------------------------------
|
1707
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')
|
1708
|
+
Processing by PushType::NodesController#create as HTML
|
1709
|
+
Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-40"}}
|
1710
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1711
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-40' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1712
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.280624"], ["slug", "foo-bar-40"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.280624"]]
|
1713
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta2484a02839a1a39f065d3fefd63673e
|
1714
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "107e4eda-817c-4736-b0af-454f45004be7"], ["descendant_id", "107e4eda-817c-4736-b0af-454f45004be7"], ["generations", 0]]
|
1715
|
+
[1m[35m (0.9ms)[0m UPDATE "push_type_nodes"
|
1716
|
+
SET "sort_order" = t.seq + -1
|
1717
|
+
FROM (
|
1718
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1719
|
+
FROM "push_type_nodes"
|
1720
|
+
WHERE "parent_id" IS NULL
|
1721
|
+
) AS t
|
1722
|
+
WHERE "push_type_nodes"."id" = t.id
|
1723
|
+
|
1724
|
+
[1m[36mPage Load (0.6ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "107e4eda-817c-4736-b0af-454f45004be7"]]
|
1725
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "107e4eda-817c-4736-b0af-454f45004be7"]]
|
1726
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS td54ec3061dcd778f5aa27638679fa036[0m
|
1727
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1728
|
+
Redirected to http://test.host/push_type/nodes
|
1729
|
+
Completed 302 Found in 14ms (ActiveRecord: 4.2ms)
|
1730
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')[0m
|
1731
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1732
|
+
[1m[36m (6.9ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1733
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1734
|
+
[1m[36m (2.5ms)[0m [1mROLLBACK[0m
|
1735
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1736
|
+
--------------------------------------------------------------------------------------
|
1737
|
+
PushType::NodesController::POST #position::without reponsitioning: test_0001_anonymous
|
1738
|
+
--------------------------------------------------------------------------------------
|
1739
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1740
|
+
[1m[35mPushType::Node Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-41' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1741
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.314574"], ["slug", "foo-bar-41"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.314574"]]
|
1742
|
+
[1m[35m (0.3ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t21c7753696fd2ebe90965ca7068ef108
|
1743
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "85ec16ce-a66d-4aca-90fa-62c087191392"], ["descendant_id", "85ec16ce-a66d-4aca-90fa-62c087191392"], ["generations", 0]]
|
1744
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
1745
|
+
SET "sort_order" = t.seq + -1
|
1746
|
+
FROM (
|
1747
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1748
|
+
FROM "push_type_nodes"
|
1749
|
+
WHERE "parent_id" IS NULL
|
1750
|
+
) AS t
|
1751
|
+
WHERE "push_type_nodes"."id" = t.id
|
1752
|
+
|
1753
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
|
1754
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
|
1755
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t532de0ec8a9e153599e4e8213ed40c79[0m
|
1756
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1758
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-42' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1759
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.324283"], ["slug", "foo-bar-42"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.324283"]]
|
1760
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tfa2051a3890b51a507d75211c2c5f8d9
|
1761
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"], ["descendant_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"], ["generations", 0]]
|
1762
|
+
[1m[35m (0.9ms)[0m UPDATE "push_type_nodes"
|
1763
|
+
SET "sort_order" = t.seq + -1
|
1764
|
+
FROM (
|
1765
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1766
|
+
FROM "push_type_nodes"
|
1767
|
+
WHERE "parent_id" IS NULL
|
1768
|
+
) AS t
|
1769
|
+
WHERE "push_type_nodes"."id" = t.id
|
1770
|
+
|
1771
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
|
1772
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
|
1773
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tcc1b9ba88d028380c869d8ab8ec70201[0m
|
1774
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1775
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1776
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-43' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1777
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.335217"], ["slug", "foo-bar-43"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.335217"]]
|
1778
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t456ba81c2693fd3011f5b63f30b4cd33
|
1779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"], ["descendant_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"], ["generations", 0]]
|
1780
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
1781
|
+
SET "sort_order" = t.seq + -1
|
1782
|
+
FROM (
|
1783
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1784
|
+
FROM "push_type_nodes"
|
1785
|
+
WHERE "parent_id" IS NULL
|
1786
|
+
) AS t
|
1787
|
+
WHERE "push_type_nodes"."id" = t.id
|
1788
|
+
|
1789
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
|
1790
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
|
1791
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t3f376f44734a6aa8280811ac29d74588[0m
|
1792
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1793
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1794
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-44' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1795
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.344062"], ["slug", "foo-bar-44"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.344062"]]
|
1796
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t9fb485990034b27e33ef30b37fa4861b
|
1797
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "22863e37-33ad-4203-a5b9-b25add1fa385"], ["descendant_id", "22863e37-33ad-4203-a5b9-b25add1fa385"], ["generations", 0]]
|
1798
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
1799
|
+
SET "sort_order" = t.seq + -1
|
1800
|
+
FROM (
|
1801
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1802
|
+
FROM "push_type_nodes"
|
1803
|
+
WHERE "parent_id" IS NULL
|
1804
|
+
) AS t
|
1805
|
+
WHERE "push_type_nodes"."id" = t.id
|
1806
|
+
|
1807
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
|
1808
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
|
1809
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t82fb7ea1e5f717c4508bf744677605eb[0m
|
1810
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1811
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1812
|
+
[1m[35mPushType::Node Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-45' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1813
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.352783"], ["slug", "foo-bar-45"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.352783"]]
|
1814
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tee745e6d70ab77b485b7fd2bb0f89288
|
1815
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"], ["descendant_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"], ["generations", 0]]
|
1816
|
+
[1m[35m (0.7ms)[0m UPDATE "push_type_nodes"
|
1817
|
+
SET "sort_order" = t.seq + -1
|
1818
|
+
FROM (
|
1819
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1820
|
+
FROM "push_type_nodes"
|
1821
|
+
WHERE "parent_id" IS NULL
|
1822
|
+
) AS t
|
1823
|
+
WHERE "push_type_nodes"."id" = t.id
|
1824
|
+
|
1825
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
|
1826
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
|
1827
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tfb5c60884ebca86f39157abe630d8965[0m
|
1828
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1829
|
+
Processing by PushType::NodesController#index as HTML
|
1830
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1831
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
1832
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0[0m
|
1833
|
+
[1m[35m (0.4ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
|
1834
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
|
1835
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
|
1836
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
|
1837
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
|
1838
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL[0m
|
1839
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
|
1840
|
+
Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 2.4ms)
|
1841
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0
|
1842
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1843
|
+
[1m[35m (8.8ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1844
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1845
|
+
[1m[35m (2.5ms)[0m ROLLBACK
|
1846
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1847
|
+
--------------------------------------------------------------------------------------
|
1848
|
+
PushType::NodesController::POST #position::without reponsitioning: test_0002_anonymous
|
1849
|
+
--------------------------------------------------------------------------------------
|
1850
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1851
|
+
[1m[36mPushType::Node Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-46' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1852
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.404496"], ["slug", "foo-bar-46"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.404496"]]
|
1853
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tbf283f60fc7c86e95146e353daca9779[0m
|
1854
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c27b760e-14a7-4202-b567-21a79d625cba"], ["descendant_id", "c27b760e-14a7-4202-b567-21a79d625cba"], ["generations", 0]]
|
1855
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1856
|
+
SET "sort_order" = t.seq + -1
|
1857
|
+
FROM (
|
1858
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1859
|
+
FROM "push_type_nodes"
|
1860
|
+
WHERE "parent_id" IS NULL
|
1861
|
+
) AS t
|
1862
|
+
WHERE "push_type_nodes"."id" = t.id
|
1863
|
+
[0m
|
1864
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
|
1865
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
|
1866
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t9f6693a500f0d95fc539ba06c98dc446
|
1867
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1868
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1869
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-47' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1870
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.414796"], ["slug", "foo-bar-47"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.414796"]]
|
1871
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t51294c80c32d6523648ce757ded9e6a6[0m
|
1872
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"], ["descendant_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"], ["generations", 0]]
|
1873
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
1874
|
+
SET "sort_order" = t.seq + -1
|
1875
|
+
FROM (
|
1876
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1877
|
+
FROM "push_type_nodes"
|
1878
|
+
WHERE "parent_id" IS NULL
|
1879
|
+
) AS t
|
1880
|
+
WHERE "push_type_nodes"."id" = t.id
|
1881
|
+
[0m
|
1882
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
|
1883
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
|
1884
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tdd52288ded7980dff7809dc33f221ac2
|
1885
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1886
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1887
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-48' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1888
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.423056"], ["slug", "foo-bar-48"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.423056"]]
|
1889
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t39088769f79c7a665fb829dcbfa6a6e0[0m
|
1890
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "47d93ba8-5a21-482c-a063-5712c06979d7"], ["descendant_id", "47d93ba8-5a21-482c-a063-5712c06979d7"], ["generations", 0]]
|
1891
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
1892
|
+
SET "sort_order" = t.seq + -1
|
1893
|
+
FROM (
|
1894
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1895
|
+
FROM "push_type_nodes"
|
1896
|
+
WHERE "parent_id" IS NULL
|
1897
|
+
) AS t
|
1898
|
+
WHERE "push_type_nodes"."id" = t.id
|
1899
|
+
[0m
|
1900
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
|
1901
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
|
1902
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t26d1b495189b84b8506fbde4981a7357
|
1903
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1904
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1905
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-49' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1906
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.431071"], ["slug", "foo-bar-49"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.431071"]]
|
1907
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t566d834f93fcf1674a4dfcbe7e401aee[0m
|
1908
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"], ["descendant_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"], ["generations", 0]]
|
1909
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
1910
|
+
SET "sort_order" = t.seq + -1
|
1911
|
+
FROM (
|
1912
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1913
|
+
FROM "push_type_nodes"
|
1914
|
+
WHERE "parent_id" IS NULL
|
1915
|
+
) AS t
|
1916
|
+
WHERE "push_type_nodes"."id" = t.id
|
1917
|
+
[0m
|
1918
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
|
1919
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
|
1920
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS td32cb6c5612800a805256852cfcb7745
|
1921
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1922
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1923
|
+
[1m[36mPushType::Node Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-50' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1924
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.439784"], ["slug", "foo-bar-50"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.439784"]]
|
1925
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t38f55b7c3891ee179c0caba45f0095e2[0m
|
1926
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "225748da-e42e-46e9-8060-323733581998"], ["descendant_id", "225748da-e42e-46e9-8060-323733581998"], ["generations", 0]]
|
1927
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "push_type_nodes"
|
1928
|
+
SET "sort_order" = t.seq + -1
|
1929
|
+
FROM (
|
1930
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1931
|
+
FROM "push_type_nodes"
|
1932
|
+
WHERE "parent_id" IS NULL
|
1933
|
+
) AS t
|
1934
|
+
WHERE "push_type_nodes"."id" = t.id
|
1935
|
+
[0m
|
1936
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "225748da-e42e-46e9-8060-323733581998"]]
|
1937
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "225748da-e42e-46e9-8060-323733581998"]]
|
1938
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t504441af2ac405586ecd4f36341cc94f
|
1939
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1940
|
+
Processing by PushType::NodesController#index as HTML
|
1941
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
1942
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
1943
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
|
1944
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
|
1945
|
+
[1m[35m (0.2ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
|
1946
|
+
[1m[36m (0.2ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
|
1947
|
+
[1m[35m (0.4ms)[0m SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
|
1948
|
+
[1m[36m (0.3ms)[0m [1mSELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "225748da-e42e-46e9-8060-323733581998"]]
|
1949
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
|
1950
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.7ms)
|
1951
|
+
Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 2.6ms)
|
1952
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0[0m
|
1953
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1954
|
+
[1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1955
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1956
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
1957
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1958
|
+
---------------------------------------------------------------
|
1959
|
+
PushType::UsersController::DELETE #destroy: test_0001_anonymous
|
1960
|
+
---------------------------------------------------------------
|
1961
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1962
|
+
[1m[35mPushType::User Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
|
1963
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.490747"], ["email", "joe-20@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.490747"]]
|
1964
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1965
|
+
Processing by PushType::UsersController#destroy as HTML
|
1966
|
+
Parameters: {"id"=>"ae5241b7-4aee-4821-90e6-b9c10b80b3b8"}
|
1967
|
+
[1m[36mPushType::User Load (0.5ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "ae5241b7-4aee-4821-90e6-b9c10b80b3b8"]]
|
1968
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1969
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1[0m [["id", "ae5241b7-4aee-4821-90e6-b9c10b80b3b8"]]
|
1970
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1971
|
+
Redirected to http://test.host/push_type/users
|
1972
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
1973
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
1974
|
+
[1m[35m (6.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
1975
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
1976
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
1977
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1978
|
+
---------------------------------------------------------------
|
1979
|
+
PushType::UsersController::DELETE #destroy: test_0002_anonymous
|
1980
|
+
---------------------------------------------------------------
|
1981
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1982
|
+
[1m[36mPushType::User Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1[0m
|
1983
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.514395"], ["email", "joe-21@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.514395"]]
|
1984
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1985
|
+
Processing by PushType::UsersController#destroy as HTML
|
1986
|
+
Parameters: {"id"=>"ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"}
|
1987
|
+
[1m[35mPushType::User Load (0.4ms)[0m SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"]]
|
1988
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1989
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"]]
|
1990
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1991
|
+
Redirected to http://test.host/push_type/users
|
1992
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
|
1993
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
1994
|
+
[1m[36m (6.7ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
1995
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
1996
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
1997
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1998
|
+
---------------------------------------------------------------
|
1999
|
+
PushType::UsersController::DELETE #destroy: test_0003_anonymous
|
2000
|
+
---------------------------------------------------------------
|
2001
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2002
|
+
[1m[35mPushType::User Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
|
2003
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.537839"], ["email", "joe-22@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.537839"]]
|
2004
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2005
|
+
Processing by PushType::UsersController#destroy as HTML
|
2006
|
+
Parameters: {"id"=>"4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"}
|
2007
|
+
[1m[36mPushType::User Load (0.3ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1[0m [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
|
2008
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2009
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1[0m [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
|
2010
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2011
|
+
Redirected to http://test.host/push_type/users
|
2012
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
2013
|
+
[1m[36mPushType::User Load (0.6ms)[0m [1mSELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1[0m [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
|
2014
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2015
|
+
[1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2016
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2017
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
2018
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2019
|
+
--------------------------------------------------------------------------
|
2020
|
+
PushType::AssetsHelper::#asset_icon::with image asset: test_0001_anonymous
|
2021
|
+
--------------------------------------------------------------------------
|
2022
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2023
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.563666"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.563666"]]
|
2024
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2025
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2026
|
+
[1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2027
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2028
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
2029
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2030
|
+
---------------------------------------------------------
|
2031
|
+
PushType::AssetsController::GET #new: test_0001_anonymous
|
2032
|
+
---------------------------------------------------------
|
2033
|
+
Processing by PushType::AssetsController#new as HTML
|
2034
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (10.8ms)
|
2035
|
+
Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.0ms)
|
2036
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2037
|
+
[1m[35m (7.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2038
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2039
|
+
[1m[35m (2.5ms)[0m ROLLBACK
|
2040
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2041
|
+
---------------------------------------------------------
|
2042
|
+
PushType::AssetsController::GET #new: test_0002_anonymous
|
2043
|
+
---------------------------------------------------------
|
2044
|
+
Processing by PushType::AssetsController#new as HTML
|
2045
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (5.0ms)
|
2046
|
+
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
|
2047
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2048
|
+
[1m[36m (6.8ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2049
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2050
|
+
[1m[36m (2.1ms)[0m [1mROLLBACK[0m
|
2051
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2052
|
+
---------------------------------------------------------
|
2053
|
+
PushType::AssetsController::GET #new: test_0003_anonymous
|
2054
|
+
---------------------------------------------------------
|
2055
|
+
Processing by PushType::AssetsController#new as HTML
|
2056
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.9ms)
|
2057
|
+
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.0ms)
|
2058
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2059
|
+
[1m[35m (6.5ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2060
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2061
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
2062
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2063
|
+
---------------------------------------------------------------
|
2064
|
+
PushType::NodesController::DELETE #destroy: test_0001_anonymous
|
2065
|
+
---------------------------------------------------------------
|
2066
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2067
|
+
[1m[36mPushType::Node Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-51' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
2068
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.694803"], ["slug", "foo-bar-51"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.694803"]]
|
2069
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t55a59fc07b70cba191e1624d72aeb589[0m
|
2070
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f272770e-892a-4318-8361-256bfcc043d5"], ["descendant_id", "f272770e-892a-4318-8361-256bfcc043d5"], ["generations", 0]]
|
2071
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
2072
|
+
SET "sort_order" = t.seq + -1
|
2073
|
+
FROM (
|
2074
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
2075
|
+
FROM "push_type_nodes"
|
2076
|
+
WHERE "parent_id" IS NULL
|
2077
|
+
) AS t
|
2078
|
+
WHERE "push_type_nodes"."id" = t.id
|
2079
|
+
[0m
|
2080
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f272770e-892a-4318-8361-256bfcc043d5"]]
|
2081
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "f272770e-892a-4318-8361-256bfcc043d5"]]
|
2082
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t4bfb20510aed520972a3ba830d443014
|
2083
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2084
|
+
Processing by PushType::NodesController#destroy as HTML
|
2085
|
+
Parameters: {"id"=>"f272770e-892a-4318-8361-256bfcc043d5"}
|
2086
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f272770e-892a-4318-8361-256bfcc043d5"]]
|
2087
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2088
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'f272770e-892a-4318-8361-256bfcc043d5' [["deleted_at", "2014-12-05 21:35:28.707217"], ["updated_at", "2014-12-05 21:35:28.707928"]]
|
2089
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2090
|
+
Redirected to http://test.host/push_type/nodes
|
2091
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
|
2092
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2093
|
+
[1m[36m (7.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2094
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2095
|
+
[1m[36m (2.2ms)[0m [1mROLLBACK[0m
|
2096
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2097
|
+
---------------------------------------------------------------
|
2098
|
+
PushType::NodesController::DELETE #destroy: test_0002_anonymous
|
2099
|
+
---------------------------------------------------------------
|
2100
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2101
|
+
[1m[35mPushType::Node Exists (0.6ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-52' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
2102
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.733740"], ["slug", "foo-bar-52"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.733740"]]
|
2103
|
+
[1m[35m (0.2ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te554b465887f13c3e49ad613b856f1f4
|
2104
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"], ["descendant_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"], ["generations", 0]]
|
2105
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
2106
|
+
SET "sort_order" = t.seq + -1
|
2107
|
+
FROM (
|
2108
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
2109
|
+
FROM "push_type_nodes"
|
2110
|
+
WHERE "parent_id" IS NULL
|
2111
|
+
) AS t
|
2112
|
+
WHERE "push_type_nodes"."id" = t.id
|
2113
|
+
|
2114
|
+
[1m[36mPage Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
|
2115
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
|
2116
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t4d95b8d544e913bf47923e7e5e32c4d6[0m
|
2117
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2118
|
+
Processing by PushType::NodesController#destroy as HTML
|
2119
|
+
Parameters: {"id"=>"8bb41e30-4596-425e-9ed5-c50198e2da3e"}
|
2120
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
|
2121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2122
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '8bb41e30-4596-425e-9ed5-c50198e2da3e'[0m [["deleted_at", "2014-12-05 21:35:28.749117"], ["updated_at", "2014-12-05 21:35:28.749677"]]
|
2123
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2124
|
+
Redirected to http://test.host/push_type/nodes
|
2125
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
|
2126
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2127
|
+
[1m[35m (8.2ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2128
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2129
|
+
[1m[35m (2.6ms)[0m ROLLBACK
|
2130
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2131
|
+
---------------------------------------------------------------
|
2132
|
+
PushType::NodesController::DELETE #destroy: test_0003_anonymous
|
2133
|
+
---------------------------------------------------------------
|
2134
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2135
|
+
[1m[36mPushType::Node Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-53' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
2136
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.774959"], ["slug", "foo-bar-53"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.774959"]]
|
2137
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tda604fe2f4be3b1cacfbfccedef1d999[0m
|
2138
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"], ["descendant_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"], ["generations", 0]]
|
2139
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "push_type_nodes"
|
2140
|
+
SET "sort_order" = t.seq + -1
|
2141
|
+
FROM (
|
2142
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
2143
|
+
FROM "push_type_nodes"
|
2144
|
+
WHERE "parent_id" IS NULL
|
2145
|
+
) AS t
|
2146
|
+
WHERE "push_type_nodes"."id" = t.id
|
2147
|
+
[0m
|
2148
|
+
[1m[35mPage Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
|
2149
|
+
[1m[36mPushType::Node Load (0.4ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
|
2150
|
+
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t6c565688d45bf1622b4ff6a06b7c58d9
|
2151
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2152
|
+
Processing by PushType::NodesController#destroy as HTML
|
2153
|
+
Parameters: {"id"=>"187dac6c-585f-49b9-bffd-d4d274e45d7d"}
|
2154
|
+
[1m[35mPushType::Node Load (0.4ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
|
2155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2156
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '187dac6c-585f-49b9-bffd-d4d274e45d7d' [["deleted_at", "2014-12-05 21:35:28.802191"], ["updated_at", "2014-12-05 21:35:28.802882"]]
|
2157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2158
|
+
Redirected to http://test.host/push_type/nodes
|
2159
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
|
2160
|
+
[1m[35mPage Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
|
2161
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2162
|
+
[1m[35m (6.4ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2163
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2164
|
+
[1m[35m (2.3ms)[0m ROLLBACK
|
2165
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2166
|
+
--------------------------------------------------------
|
2167
|
+
PushType::NodesController::GET #new: test_0001_anonymous
|
2168
|
+
--------------------------------------------------------
|
2169
|
+
Processing by PushType::NodesController#new as HTML
|
2170
|
+
Parameters: {"kind"=>"page"}
|
2171
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
|
2172
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.4ms)
|
2173
|
+
Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.0ms)
|
2174
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2175
|
+
[1m[36m (7.1ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2176
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2177
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
2178
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2179
|
+
--------------------------------------------------------
|
2180
|
+
PushType::NodesController::GET #new: test_0002_anonymous
|
2181
|
+
--------------------------------------------------------
|
2182
|
+
Processing by PushType::NodesController#new as HTML
|
2183
|
+
Parameters: {"kind"=>"page"}
|
2184
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
|
2185
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.1ms)
|
2186
|
+
Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.0ms)
|
2187
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2188
|
+
[1m[35m (7.2ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2189
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2190
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
2191
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2192
|
+
--------------------------------------------------------
|
2193
|
+
PushType::NodesController::GET #new: test_0003_anonymous
|
2194
|
+
--------------------------------------------------------
|
2195
|
+
Processing by PushType::NodesController#new as HTML
|
2196
|
+
Parameters: {"kind"=>"page"}
|
2197
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
|
2198
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.8ms)
|
2199
|
+
Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.0ms)
|
2200
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2201
|
+
[1m[36m (6.3ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2202
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2203
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
2204
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2205
|
+
-----------------------------------------------------------
|
2206
|
+
PushType::AssetsController::GET #index: test_0001_anonymous
|
2207
|
+
-----------------------------------------------------------
|
2208
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2209
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.937012"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.937012"]]
|
2210
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2211
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2212
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.942116"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.942116"]]
|
2213
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2214
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2215
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.947416"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.947416"]]
|
2216
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2217
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2218
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.952012"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.952012"]]
|
2219
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2220
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2221
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.956110"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.956110"]]
|
2222
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2223
|
+
Processing by PushType::AssetsController#index as HTML
|
2224
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
2225
|
+
[1m[36mPushType::Asset Load (0.3ms)[0m [1mSELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 30 OFFSET 0[0m
|
2226
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL
|
2227
|
+
Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 1.1ms)
|
2228
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2229
|
+
[1m[35m (7.7ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2230
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2231
|
+
[1m[35m (2.3ms)[0m ROLLBACK
|
2232
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2233
|
+
-----------------------------------------------------------
|
2234
|
+
PushType::AssetsController::GET #index: test_0002_anonymous
|
2235
|
+
-----------------------------------------------------------
|
2236
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2237
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:28.998684"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.998684"]]
|
2238
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2239
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2240
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.003471"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.003471"]]
|
2241
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2242
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2243
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:29.007182"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.007182"]]
|
2244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2246
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.010762"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.010762"]]
|
2247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2248
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2249
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:29.014835"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.014835"]]
|
2250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2251
|
+
Processing by PushType::AssetsController#index as HTML
|
2252
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count[0m
|
2253
|
+
[1m[35mPushType::Asset Load (0.3ms)[0m SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 30 OFFSET 0
|
2254
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL[0m
|
2255
|
+
Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.2ms)
|
2256
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
|
2257
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2258
|
+
[1m[35m (6.7ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2259
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2260
|
+
[1m[35m (2.6ms)[0m ROLLBACK
|
2261
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2262
|
+
------------------------------------------------------------------------
|
2263
|
+
PushType::UsersController::POST #create::user count: test_0001_anonymous
|
2264
|
+
------------------------------------------------------------------------
|
2265
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "push_type_users"
|
2266
|
+
Processing by PushType::UsersController#create as HTML
|
2267
|
+
Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-23@example.com"}}
|
2268
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2269
|
+
[1m[35mPushType::User Exists (0.3ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-23@example.com' LIMIT 1
|
2270
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-12-05 21:35:29.057213"], ["email", "joe-23@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:29.057213"]]
|
2271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2272
|
+
Redirected to http://test.host/push_type/users
|
2273
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
|
2274
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "push_type_users"[0m
|
2275
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2276
|
+
[1m[36m (7.0ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2277
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2278
|
+
[1m[36m (2.3ms)[0m [1mROLLBACK[0m
|
2279
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2280
|
+
---------------------------------------------------------------------
|
2281
|
+
PushType::AdminHelper::#ficon: test_0001_should return an <i> element
|
2282
|
+
---------------------------------------------------------------------
|
2283
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2284
|
+
[1m[35m (6.8ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2285
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2286
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
2287
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2288
|
+
---------------------------------------------------------------
|
2289
|
+
PushType::AdminHelper::#ficon: test_0002_should return any text
|
2290
|
+
---------------------------------------------------------------
|
2291
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2292
|
+
[1m[36m (8.6ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2293
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2294
|
+
[1m[36m (2.0ms)[0m [1mROLLBACK[0m
|
2295
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2296
|
+
----------------------------------------------------------------------------------
|
2297
|
+
PushType::AssetsController::POST #create::with in-valid asset: test_0001_anonymous
|
2298
|
+
----------------------------------------------------------------------------------
|
2299
|
+
Processing by PushType::AssetsController#create as HTML
|
2300
|
+
Parameters: {"asset"=>{}}
|
2301
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2302
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2303
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (3.2ms)
|
2304
|
+
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.3ms)
|
2305
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL[0m
|
2306
|
+
[1m[35m (8.0ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
2307
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL[0m
|
2308
|
+
[1m[35m (2.5ms)[0m ROLLBACK
|
2309
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2310
|
+
----------------------------------------------------------------------------------
|
2311
|
+
PushType::AssetsController::POST #create::with in-valid asset: test_0002_anonymous
|
2312
|
+
----------------------------------------------------------------------------------
|
2313
|
+
Processing by PushType::AssetsController#create as HTML
|
2314
|
+
Parameters: {"asset"=>{}}
|
2315
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2316
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2317
|
+
Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.4ms)
|
2318
|
+
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms)
|
2319
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
2320
|
+
[1m[36m (6.1ms)[0m [1mTRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;[0m
|
2321
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
|
2322
|
+
[1m[36m (2.4ms)[0m [1mROLLBACK[0m
|