Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.4ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.2ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (0.9ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (0.9ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (0.8ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.3ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (1.0ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.0ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (0.9ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (0.9ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.9ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.0ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (0.9ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.1ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (0.9ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.0ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (1.1ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.1ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (0.9ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.9ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.0ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.1ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.1ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (1.1ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (1.1ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.1ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.1ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.3ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (1.0ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (3.9ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.4ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.4ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.8ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.6ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (2.3ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.4ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.2ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.0ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.2ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.1ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.0ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.2ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.2ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.4ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.0ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.9ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.1ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.1ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.3ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.2ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.1ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.3ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.0ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (1.2ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.1ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (0.9ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.0ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.0ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.1ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.0ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.1ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.3ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.2ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.0ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.1ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.1ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (0.8ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.0ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (1.2ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.4ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.1ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.3ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.3ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (0.9ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.0ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (0.9ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.0ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.9ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.3ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (0.8ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.2ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.0ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (1.0ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.9ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (0.9ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.3ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (0.9ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.1ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (1.1ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.0ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (1.1ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.2ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (0.9ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.1ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.3ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.0ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.1ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (0.9ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.0ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (0.9ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (1.0ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.0ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.2ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (0.9ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.0ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.3ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.2ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.8ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.2ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.1ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (0.9ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.9ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.9ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (0.9ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.0ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.0ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (0.9ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.8ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.0ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.1ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.0ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.1ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.2ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.2ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.2ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (1.3ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.1ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.1ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.1ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.4ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.1ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.4ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.1ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.5ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.0ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.0ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.1ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (0.9ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.2ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.3ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (5.6ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (3.4ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.1ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.0ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.0ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (1.0ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.2ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.9ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (1.0ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.2ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (0.8ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (1.0ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (1.0ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (1.0ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (0.9ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (0.9ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (1.3ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.0ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (0.9ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.2ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.1ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (0.9ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.2ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (0.9ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (0.9ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (0.9ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (1.0ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (0.9ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (0.9ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (0.8ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (0.9ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (0.9ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.1ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.8ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.0ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (0.9ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.0ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (0.9ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (0.9ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.9ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.9ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (0.9ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.1ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.1ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (0.8ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.9ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.1ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.0ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.0ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.9ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (0.9ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.3ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (0.9ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (0.9ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (0.9ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (0.8ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (0.9ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.0ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (0.9ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (0.9ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.0ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.9ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.0ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (0.8ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (0.9ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.6ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.1ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.0ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (0.9ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (1.1ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.4ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.3ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (0.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateEvents (20130510155617)  (0.1ms) begin transaction  (0.6ms) DROP TABLE "ems_workshop_translations"  (0.3ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)  (0.3ms) DROP TABLE "ems_workshops"  (0.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "is_closed" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.3ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "user_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0)  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) DROP TABLE "ems_workshop_price_translations"  (0.1ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "ems_workshop_prices"  (0.1ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130510155617"]]  (1.7ms) commit transaction Migrating to AddLocaleToRegistration (20130516124327)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "ems_registrations" ADD "registered_locale" varchar(5) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130516124327"]]  (0.7ms) commit transaction Migrating to AddUserProfileToRegistration (20130516204454)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "user_profile_id" integer  (0.3ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "user_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.2ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130516204454"]]  (1.0ms) commit transaction Migrating to AddRequireAddress (20130518092324)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "require_account" boolean  (0.2ms) ALTER TABLE "ems_workshops" ADD "require_address" boolean  (0.2ms) ALTER TABLE "ems_workshops" ADD "require_photo" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130518092324"]]  (1.1ms) commit transaction Migrating to AddWorkshopPublished (20130609145812)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.1ms) CREATE INDEX "tworkshopname_key" ON "aems_workshops" ("slug")  (0.1ms) SELECT * FROM "ems_workshops"  (0.3ms) DROP TABLE "ems_workshops"  (0.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tworkshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tworkshopname_key' AND type='index'   (0.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.1ms) SELECT * FROM "aems_workshops"  (0.1ms) DROP TABLE "aems_workshops"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130609145812"]]  (1.1ms) commit transaction Migrating to AddAmountCurrency (20130624134506)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.3ms) DROP TABLE "ems_registrations"  (0.1ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.2ms) ALTER TABLE "ems_registrations" ADD "amount_paid_currency" varchar Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130624134506"]]  (1.3ms) commit transaction Migrating to AddWorkshopCurrency (20130703131515)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "base_currency" varchar(3) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130703131515"]]  (1.0ms) commit transaction Migrating to AddEventFundingType (20130913083529)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "event_style" varchar DEFAULT 'workshop'  (0.2ms) ALTER TABLE "ems_workshops" ADD "funding_goal_cents" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130913083529"]]  (1.0ms) commit transaction Migrating to AddEnablePayments (20130914105736)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_workshops" ADD "payments_enabled" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130914105736"]]  (0.8ms) commit transaction Migrating to AddSidebarToWorkshop (20130916160033)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshop_translations" ADD "sidebar" text SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916160033"]]  (1.4ms) commit transaction Migrating to AddShowAddress (20130917161700)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "show_address" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130917161700"]]  (1.0ms) commit transaction Migrating to AddDefaultFundingGoal (20131116180719)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer, "payments_enabled" boolean, "show_address" boolean)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'   (0.1ms) CREATE INDEX "tworkshopname_key" ON "aems_workshops" ("slug")  (0.1ms) SELECT * FROM "ems_workshops"  (0.3ms) DROP TABLE "ems_workshops"  (0.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tworkshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tworkshopname_key' AND type='index'  (0.2ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.1ms) SELECT * FROM "aems_workshops"  (0.1ms) DROP TABLE "aems_workshops" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131116180719"]]  (1.2ms) commit transaction Migrating to AddPaymentReminder (20131127165445)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "payment_reminder_sent_on" datetime SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131127165445"]]  (0.7ms) commit transaction Migrating to AddEventImage (20140122204702)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "image" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140122204702"]]  (0.7ms) commit transaction Migrating to AddWorkshopSummary (20140523165342)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "ems_workshop_translations" ADD "summary" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140523165342"]]  (0.7ms) commit transaction Migrating to AddUuidToRegistration (20140605052208)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "uuid" varchar(36)  (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.2ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid") Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140605052208"]]  (0.9ms) commit transaction Migrating to AddRegistrationCommentCount (20140707152124)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "comments_count" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140707152124"]]  (0.9ms) commit transaction Migrating to AddPaymentComment (20140708142312)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "payment_comment_id" integer  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "tindex_aems_registrations_on_uuid" ON "aems_registrations" ("uuid")  (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.2ms) DROP TABLE "ems_registrations"  (0.3ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index'  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations"  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "tindex_aems_registrations_on_uuid" ON "aems_registrations" ("uuid")  (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.1ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index'  (0.3ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.3ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (0.1ms) SELECT * FROM "aems_registrations"  (0.2ms) DROP TABLE "aems_registrations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140708142312"]]  (1.4ms) commit transaction Migrating to AddPaymentReminderHistory (20150709125105)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "ems_registrations" ADD "payment_reminder_history" text Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150709125105"]]  (1.0ms) commit transaction Migrating to AddBccContactEmail (20160810081542)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_workshops" ADD "bcc_contact_email" boolean DEFAULT 'f' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160810081542"]]  (1.0ms) commit transaction Migrating to IndexForeignKeysInEmsRegistrations (20160821150120)  (0.0ms) begin transaction  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.3ms) CREATE INDEX "index_ems_registrations_on_account_id" ON "ems_registrations" ("account_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_registrations_on_payment_comment_id" ON "ems_registrations" ("payment_comment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.2ms) CREATE INDEX "index_ems_registrations_on_user_profile_id" ON "ems_registrations" ("user_profile_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "index_ems_registrations_on_workshop_id" ON "ems_registrations" ("workshop_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_registrations_on_workshop_price_id" ON "ems_registrations" ("workshop_price_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150120"]]  (1.4ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopPriceTranslations (20160821150121)  (0.1ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_price_translations_on_ems_workshop_price_id" ON "ems_workshop_price_translations" ("ems_workshop_price_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150121"]]  (1.1ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopPrices (20160821150122)  (0.0ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_prices_on_account_id" ON "ems_workshop_prices" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index'   (0.1ms) CREATE INDEX "index_ems_workshop_prices_on_workshop_id" ON "ems_workshop_prices" ("workshop_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150122"]]  (1.1ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopTranslations (20160821150123)  (0.0ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_translations_on_ems_workshop_id" ON "ems_workshop_translations" ("ems_workshop_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150123"]]  (0.8ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshops (20160821150124)  (0.1ms) begin transaction  (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.3ms) CREATE INDEX "index_ems_workshops_on_account_id" ON "ems_workshops" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_workshops_on_country_id" ON "ems_workshops" ("country_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150124"]]  (1.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_blog_translations_on_cms_blog_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_blog_translations_on_cms_blog_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='blogname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='blogname_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_072c3a76f87c96e2f91149eccd2a283dca2b613f' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_072c3a76f87c96e2f91149eccd2a283dca2b613f' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_contentitems_cms_page_id_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_contentitems_cms_page_id_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_media_file_translations_on_cms_media_file_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_media_file_translations_on_cms_media_file_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_media_folder_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_media_folder_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_page_translations_on_cms_page_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_page_translations_on_cms_page_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='pagename_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='pagename_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_post_translations_on_cms_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_post_translations_on_cms_post_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='postname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='postname_key' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_snippet_translations_on_cms_snippet_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippet_translations_on_cms_snippet_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_slug' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_addresses_on_addressable_type_and_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_addresses_on_addressable_type_and_addressable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_category_translation' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_category_translation' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_user_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='core_custom_field_def_translations_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='core_custom_field_def_translations_index' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_owner_id_and_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_owner_id_and_owner_type' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_owner_id_and_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_owner_id_and_owner_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_price_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_price_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_price_translations_on_ems_workshop_price_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_price_translations_on_ems_workshop_price_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_workshop_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_translations_on_ems_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_translations_on_ems_workshop_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_country_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='fk_follows' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_follows' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_locale' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_locale' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_rfc_3066' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_rfc_3066' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_preferences_on_owner_and_name_and_preference' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_preferences_on_owner_and_name_and_preference' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_user_site_profiles_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_site_profiles_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_reset_password_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_version_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_version_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_transaction_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_transaction_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_voter_id_and_voter_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_voter_id_and_voter_type_and_vote_scope' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:51.768234"], ["updated_at", "2016-12-06 13:46:51.768234"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:51.788799"], ["updated_at", "2016-12-06 13:46:51.788799"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:51.790583"], ["updated_at", "2016-12-06 13:46:51.790583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.5ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.385295"], ["updated_at", "2016-12-06 13:46:52.385295"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.399667"], ["updated_at", "2016-12-06 13:46:52.399667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.458647"], ["updated_at", "2016-12-06 13:46:52.458647"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.468765"], ["updated_at", "2016-12-06 13:46:52.468765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '397893c6-906e-4547-aaf9-b311152f5989' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "397893c6-906e-4547-aaf9-b311152f5989"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.526414"], ["updated_at", "2016-12-06 13:46:52.526414"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '397893c6-906e-4547-aaf9-b311152f5989', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.526414', "updated_at" = '2016-12-06 13:46:52.526414', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.530436', "updated_at" = '2016-12-06 13:46:52.530673', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '397893c6-906e-4547-aaf9-b311152f5989' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.553550"], ["updated_at", "2016-12-06 13:46:52.553550"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.554868"], ["updated_at", "2016-12-06 13:46:52.554868"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.555965"], ["updated_at", "2016-12-06 13:46:52.555965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.561335"], ["updated_at", "2016-12-06 13:46:52.561335"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.566082"], ["updated_at", "2016-12-06 13:46:52.566082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.576015"], ["updated_at", "2016-12-06 13:46:52.576015"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.577840"], ["updated_at", "2016-12-06 13:46:52.577840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '380d9c47-60ff-46f2-a978-351c5db28950' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "380d9c47-60ff-46f2-a978-351c5db28950"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.585532"], ["updated_at", "2016-12-06 13:46:52.585532"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '380d9c47-60ff-46f2-a978-351c5db28950', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.585532', "updated_at" = '2016-12-06 13:46:52.585532', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.589585', "updated_at" = '2016-12-06 13:46:52.589817', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '380d9c47-60ff-46f2-a978-351c5db28950' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.604294"], ["updated_at", "2016-12-06 13:46:52.604294"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.606350"], ["updated_at", "2016-12-06 13:46:52.606350"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.607436"], ["updated_at", "2016-12-06 13:46:52.607436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.615085"], ["updated_at", "2016-12-06 13:46:52.615085"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.617339"], ["updated_at", "2016-12-06 13:46:52.617339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.624896"], ["updated_at", "2016-12-06 13:46:52.624896"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.627003"], ["updated_at", "2016-12-06 13:46:52.627003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ba88882e-6267-44f8-9831-fe6a4c05755e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ba88882e-6267-44f8-9831-fe6a4c05755e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.634835"], ["updated_at", "2016-12-06 13:46:52.634835"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ba88882e-6267-44f8-9831-fe6a4c05755e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.634835', "updated_at" = '2016-12-06 13:46:52.634835', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.638352', "updated_at" = '2016-12-06 13:46:52.638583', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ba88882e-6267-44f8-9831-fe6a4c05755e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.647741"], ["updated_at", "2016-12-06 13:46:52.647741"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.649256"], ["updated_at", "2016-12-06 13:46:52.649256"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.650373"], ["updated_at", "2016-12-06 13:46:52.650373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.8ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.657350"], ["updated_at", "2016-12-06 13:46:52.657350"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.660563"], ["updated_at", "2016-12-06 13:46:52.660563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.668157"], ["updated_at", "2016-12-06 13:46:52.668157"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.670011"], ["updated_at", "2016-12-06 13:46:52.670011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '86d17e87-1e0f-4692-a5f2-e2b4e6a661e7' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "86d17e87-1e0f-4692-a5f2-e2b4e6a661e7"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.678077"], ["updated_at", "2016-12-06 13:46:52.678077"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '86d17e87-1e0f-4692-a5f2-e2b4e6a661e7', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.678077', "updated_at" = '2016-12-06 13:46:52.678077', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.681720', "updated_at" = '2016-12-06 13:46:52.681997', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '86d17e87-1e0f-4692-a5f2-e2b4e6a661e7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.691116"], ["updated_at", "2016-12-06 13:46:52.691116"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.692442"], ["updated_at", "2016-12-06 13:46:52.692442"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.693466"], ["updated_at", "2016-12-06 13:46:52.693466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.700187"], ["updated_at", "2016-12-06 13:46:52.700187"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.705119"], ["updated_at", "2016-12-06 13:46:52.705119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.714772"], ["updated_at", "2016-12-06 13:46:52.714772"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.716998"], ["updated_at", "2016-12-06 13:46:52.716998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7176b922-4628-4e8b-87ce-b9f116bf6742' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7176b922-4628-4e8b-87ce-b9f116bf6742"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.725049"], ["updated_at", "2016-12-06 13:46:52.725049"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7176b922-4628-4e8b-87ce-b9f116bf6742', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.725049', "updated_at" = '2016-12-06 13:46:52.725049', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.728747', "updated_at" = '2016-12-06 13:46:52.729012', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7176b922-4628-4e8b-87ce-b9f116bf6742' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.740405"], ["updated_at", "2016-12-06 13:46:52.740405"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.742861"], ["updated_at", "2016-12-06 13:46:52.742861"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.744582"], ["updated_at", "2016-12-06 13:46:52.744582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.751918"], ["updated_at", "2016-12-06 13:46:52.751918"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.754502"], ["updated_at", "2016-12-06 13:46:52.754502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.763191"], ["updated_at", "2016-12-06 13:46:52.763191"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.766817"], ["updated_at", "2016-12-06 13:46:52.766817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '46ae82f7-5485-45bf-8644-5b1e100124e8' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "46ae82f7-5485-45bf-8644-5b1e100124e8"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.779068"], ["updated_at", "2016-12-06 13:46:52.779068"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '46ae82f7-5485-45bf-8644-5b1e100124e8', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.779068', "updated_at" = '2016-12-06 13:46:52.779068', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.782896', "updated_at" = '2016-12-06 13:46:52.783128', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '46ae82f7-5485-45bf-8644-5b1e100124e8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.797962"], ["updated_at", "2016-12-06 13:46:52.797962"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.799343"], ["updated_at", "2016-12-06 13:46:52.799343"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.800401"], ["updated_at", "2016-12-06 13:46:52.800401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.807135"], ["updated_at", "2016-12-06 13:46:52.807135"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.810275"], ["updated_at", "2016-12-06 13:46:52.810275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.818031"], ["updated_at", "2016-12-06 13:46:52.818031"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.819884"], ["updated_at", "2016-12-06 13:46:52.819884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f582a743-2a95-469c-977d-81713a4e78e0' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f582a743-2a95-469c-977d-81713a4e78e0"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.827936"], ["updated_at", "2016-12-06 13:46:52.827936"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f582a743-2a95-469c-977d-81713a4e78e0', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.827936', "updated_at" = '2016-12-06 13:46:52.827936', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.831453', "updated_at" = '2016-12-06 13:46:52.831731', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f582a743-2a95-469c-977d-81713a4e78e0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.842726"], ["updated_at", "2016-12-06 13:46:52.842726"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.846161"], ["updated_at", "2016-12-06 13:46:52.846161"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.847860"], ["updated_at", "2016-12-06 13:46:52.847860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.7ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.855123"], ["updated_at", "2016-12-06 13:46:52.855123"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.857951"], ["updated_at", "2016-12-06 13:46:52.857951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.866783"], ["updated_at", "2016-12-06 13:46:52.866783"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.868817"], ["updated_at", "2016-12-06 13:46:52.868817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e701e12a-2b1b-41ab-8ae9-037226c4f17d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e701e12a-2b1b-41ab-8ae9-037226c4f17d"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.877037"], ["updated_at", "2016-12-06 13:46:52.877037"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e701e12a-2b1b-41ab-8ae9-037226c4f17d', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.877037', "updated_at" = '2016-12-06 13:46:52.877037', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.880772', "updated_at" = '2016-12-06 13:46:52.881072', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e701e12a-2b1b-41ab-8ae9-037226c4f17d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.892328"], ["updated_at", "2016-12-06 13:46:52.892328"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.894793"], ["updated_at", "2016-12-06 13:46:52.894793"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.896420"], ["updated_at", "2016-12-06 13:46:52.896420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.903713"], ["updated_at", "2016-12-06 13:46:52.903713"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.906078"], ["updated_at", "2016-12-06 13:46:52.906078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:46:52.914586"], ["updated_at", "2016-12-06 13:46:52.914586"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:46:52.916561"], ["updated_at", "2016-12-06 13:46:52.916561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'aa21fd9c-fb07-442f-adbd-2a2665244736' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "aa21fd9c-fb07-442f-adbd-2a2665244736"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.925320"], ["updated_at", "2016-12-06 13:46:52.925320"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'aa21fd9c-fb07-442f-adbd-2a2665244736', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.925320', "updated_at" = '2016-12-06 13:46:52.925320', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.929562', "updated_at" = '2016-12-06 13:46:52.929818', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'aa21fd9c-fb07-442f-adbd-2a2665244736' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.938593"], ["updated_at", "2016-12-06 13:46:52.938593"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.939898"], ["updated_at", "2016-12-06 13:46:52.939898"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.941233"], ["updated_at", "2016-12-06 13:46:52.941233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.950002"], ["updated_at", "2016-12-06 13:46:52.950002"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.953651"], ["updated_at", "2016-12-06 13:46:52.953651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '54b1e820-e9ff-435a-8a74-980892ba0c25' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "54b1e820-e9ff-435a-8a74-980892ba0c25"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:46:52.963662"], ["updated_at", "2016-12-06 13:46:52.963662"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '54b1e820-e9ff-435a-8a74-980892ba0c25', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:46:52.963662', "updated_at" = '2016-12-06 13:46:52.963662', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:46:52.967858', "updated_at" = '2016-12-06 13:46:52.968085', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '54b1e820-e9ff-435a-8a74-980892ba0c25' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:46:52.976606"], ["updated_at", "2016-12-06 13:46:52.976606"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.977971"], ["updated_at", "2016-12-06 13:46:52.977971"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:46:52.979064"], ["updated_at", "2016-12-06 13:46:52.979064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:46:52.984663"], ["updated_at", "2016-12-06 13:46:52.984663"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:46:52.986993"], ["updated_at", "2016-12-06 13:46:52.986993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:02.906057"], ["updated_at", "2016-12-06 13:48:02.906057"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:02.922423"], ["updated_at", "2016-12-06 13:48:02.922423"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:02.923968"], ["updated_at", "2016-12-06 13:48:02.923968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.8ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.546608"], ["updated_at", "2016-12-06 13:48:03.546608"]] SQL (1.8ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.561214"], ["updated_at", "2016-12-06 13:48:03.561214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (1.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.0ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.615135"], ["updated_at", "2016-12-06 13:48:03.615135"]] SQL (1.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.626473"], ["updated_at", "2016-12-06 13:48:03.626473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6f33f9f7-200a-4b56-87ca-4e1b86c3f19c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (7.9ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6f33f9f7-200a-4b56-87ca-4e1b86c3f19c"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.688689"], ["updated_at", "2016-12-06 13:48:03.688689"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6f33f9f7-200a-4b56-87ca-4e1b86c3f19c', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.688689', "updated_at" = '2016-12-06 13:48:03.688689', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.701248', "updated_at" = '2016-12-06 13:48:03.701502', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6f33f9f7-200a-4b56-87ca-4e1b86c3f19c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.724660"], ["updated_at", "2016-12-06 13:48:03.724660"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.726030"], ["updated_at", "2016-12-06 13:48:03.726030"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.727160"], ["updated_at", "2016-12-06 13:48:03.727160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.732825"], ["updated_at", "2016-12-06 13:48:03.732825"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.737871"], ["updated_at", "2016-12-06 13:48:03.737871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.746931"], ["updated_at", "2016-12-06 13:48:03.746931"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.748805"], ["updated_at", "2016-12-06 13:48:03.748805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0330a565-7c02-4398-a0c6-a674fc92e321' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0330a565-7c02-4398-a0c6-a674fc92e321"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.756776"], ["updated_at", "2016-12-06 13:48:03.756776"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0330a565-7c02-4398-a0c6-a674fc92e321', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.756776', "updated_at" = '2016-12-06 13:48:03.756776', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.760880', "updated_at" = '2016-12-06 13:48:03.761146', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0330a565-7c02-4398-a0c6-a674fc92e321' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.772292"], ["updated_at", "2016-12-06 13:48:03.772292"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.773621"], ["updated_at", "2016-12-06 13:48:03.773621"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.774716"], ["updated_at", "2016-12-06 13:48:03.774716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.780548"], ["updated_at", "2016-12-06 13:48:03.780548"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.782743"], ["updated_at", "2016-12-06 13:48:03.782743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.5ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.790942"], ["updated_at", "2016-12-06 13:48:03.790942"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.793339"], ["updated_at", "2016-12-06 13:48:03.793339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '21cb28fb-feeb-4468-a6c3-c240b032a9f7' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "21cb28fb-feeb-4468-a6c3-c240b032a9f7"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.801104"], ["updated_at", "2016-12-06 13:48:03.801104"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '21cb28fb-feeb-4468-a6c3-c240b032a9f7', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.801104', "updated_at" = '2016-12-06 13:48:03.801104', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.804793', "updated_at" = '2016-12-06 13:48:03.805059', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '21cb28fb-feeb-4468-a6c3-c240b032a9f7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.818191"], ["updated_at", "2016-12-06 13:48:03.818191"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.819802"], ["updated_at", "2016-12-06 13:48:03.819802"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.821241"], ["updated_at", "2016-12-06 13:48:03.821241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.827632"], ["updated_at", "2016-12-06 13:48:03.827632"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.829656"], ["updated_at", "2016-12-06 13:48:03.829656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.836693"], ["updated_at", "2016-12-06 13:48:03.836693"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.838842"], ["updated_at", "2016-12-06 13:48:03.838842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '27b5adbc-2441-458a-a332-6491ce29da1e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "27b5adbc-2441-458a-a332-6491ce29da1e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.851046"], ["updated_at", "2016-12-06 13:48:03.851046"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '27b5adbc-2441-458a-a332-6491ce29da1e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.851046', "updated_at" = '2016-12-06 13:48:03.851046', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.854726', "updated_at" = '2016-12-06 13:48:03.855031', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '27b5adbc-2441-458a-a332-6491ce29da1e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.868421"], ["updated_at", "2016-12-06 13:48:03.868421"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.869764"], ["updated_at", "2016-12-06 13:48:03.869764"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.870851"], ["updated_at", "2016-12-06 13:48:03.870851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.877190"], ["updated_at", "2016-12-06 13:48:03.877190"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.879262"], ["updated_at", "2016-12-06 13:48:03.879262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.886880"], ["updated_at", "2016-12-06 13:48:03.886880"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.889139"], ["updated_at", "2016-12-06 13:48:03.889139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '59e3ee05-302f-4822-abe9-37b2411de637' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "59e3ee05-302f-4822-abe9-37b2411de637"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.901108"], ["updated_at", "2016-12-06 13:48:03.901108"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '59e3ee05-302f-4822-abe9-37b2411de637', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.901108', "updated_at" = '2016-12-06 13:48:03.901108', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.905125', "updated_at" = '2016-12-06 13:48:03.905438', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '59e3ee05-302f-4822-abe9-37b2411de637' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.915831"], ["updated_at", "2016-12-06 13:48:03.915831"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.917325"], ["updated_at", "2016-12-06 13:48:03.917325"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.918622"], ["updated_at", "2016-12-06 13:48:03.918622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.925661"], ["updated_at", "2016-12-06 13:48:03.925661"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.927773"], ["updated_at", "2016-12-06 13:48:03.927773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.934739"], ["updated_at", "2016-12-06 13:48:03.934739"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.937039"], ["updated_at", "2016-12-06 13:48:03.937039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c07cc3e8-ac40-4bf5-9557-25b2869c3fe9' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c07cc3e8-ac40-4bf5-9557-25b2869c3fe9"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.949465"], ["updated_at", "2016-12-06 13:48:03.949465"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c07cc3e8-ac40-4bf5-9557-25b2869c3fe9', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.949465', "updated_at" = '2016-12-06 13:48:03.949465', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.952976', "updated_at" = '2016-12-06 13:48:03.953242', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c07cc3e8-ac40-4bf5-9557-25b2869c3fe9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:03.962926"], ["updated_at", "2016-12-06 13:48:03.962926"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.964237"], ["updated_at", "2016-12-06 13:48:03.964237"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:03.965414"], ["updated_at", "2016-12-06 13:48:03.965414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:03.971799"], ["updated_at", "2016-12-06 13:48:03.971799"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:03.974050"], ["updated_at", "2016-12-06 13:48:03.974050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:03.981068"], ["updated_at", "2016-12-06 13:48:03.981068"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:03.982872"], ["updated_at", "2016-12-06 13:48:03.982872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7253be31-8a5a-43b6-9cef-c96f17425b2c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7253be31-8a5a-43b6-9cef-c96f17425b2c"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:03.992920"], ["updated_at", "2016-12-06 13:48:03.992920"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7253be31-8a5a-43b6-9cef-c96f17425b2c', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:03.992920', "updated_at" = '2016-12-06 13:48:03.992920', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:03.996701', "updated_at" = '2016-12-06 13:48:03.996969', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7253be31-8a5a-43b6-9cef-c96f17425b2c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:04.009763"], ["updated_at", "2016-12-06 13:48:04.009763"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.011308"], ["updated_at", "2016-12-06 13:48:04.011308"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.012392"], ["updated_at", "2016-12-06 13:48:04.012392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:04.019923"], ["updated_at", "2016-12-06 13:48:04.019923"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:04.022458"], ["updated_at", "2016-12-06 13:48:04.022458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:04.030436"], ["updated_at", "2016-12-06 13:48:04.030436"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:04.032210"], ["updated_at", "2016-12-06 13:48:04.032210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7e7b2397-e17f-481c-9ab3-baec2c6201ed' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7e7b2397-e17f-481c-9ab3-baec2c6201ed"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:04.043005"], ["updated_at", "2016-12-06 13:48:04.043005"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7e7b2397-e17f-481c-9ab3-baec2c6201ed', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:04.043005', "updated_at" = '2016-12-06 13:48:04.043005', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:04.047038', "updated_at" = '2016-12-06 13:48:04.047279', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7e7b2397-e17f-481c-9ab3-baec2c6201ed' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:04.056578"], ["updated_at", "2016-12-06 13:48:04.056578"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.058189"], ["updated_at", "2016-12-06 13:48:04.058189"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.059362"], ["updated_at", "2016-12-06 13:48:04.059362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:04.065920"], ["updated_at", "2016-12-06 13:48:04.065920"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:04.068178"], ["updated_at", "2016-12-06 13:48:04.068178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:04.076267"], ["updated_at", "2016-12-06 13:48:04.076267"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:04.078359"], ["updated_at", "2016-12-06 13:48:04.078359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '837b8df3-5ce9-425d-a59e-6464980a7928' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "837b8df3-5ce9-425d-a59e-6464980a7928"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:04.088393"], ["updated_at", "2016-12-06 13:48:04.088393"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '837b8df3-5ce9-425d-a59e-6464980a7928', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:04.088393', "updated_at" = '2016-12-06 13:48:04.088393', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:04.093724', "updated_at" = '2016-12-06 13:48:04.093997', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '837b8df3-5ce9-425d-a59e-6464980a7928' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:04.105189"], ["updated_at", "2016-12-06 13:48:04.105189"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.106704"], ["updated_at", "2016-12-06 13:48:04.106704"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.107833"], ["updated_at", "2016-12-06 13:48:04.107833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:04.114947"], ["updated_at", "2016-12-06 13:48:04.114947"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:04.117056"], ["updated_at", "2016-12-06 13:48:04.117056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c3a1b681-bb4b-4c8d-9718-891967906ce5' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c3a1b681-bb4b-4c8d-9718-891967906ce5"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:04.124771"], ["updated_at", "2016-12-06 13:48:04.124771"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c3a1b681-bb4b-4c8d-9718-891967906ce5', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:04.124771', "updated_at" = '2016-12-06 13:48:04.124771', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:04.128718', "updated_at" = '2016-12-06 13:48:04.128961', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c3a1b681-bb4b-4c8d-9718-891967906ce5' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:04.139404"], ["updated_at", "2016-12-06 13:48:04.139404"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.142180"], ["updated_at", "2016-12-06 13:48:04.142180"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:04.143840"], ["updated_at", "2016-12-06 13:48:04.143840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:04.152843"], ["updated_at", "2016-12-06 13:48:04.152843"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:04.156381"], ["updated_at", "2016-12-06 13:48:04.156381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:51.879867"], ["updated_at", "2016-12-06 13:48:51.879867"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:51.896698"], ["updated_at", "2016-12-06 13:48:51.896698"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:51.898333"], ["updated_at", "2016-12-06 13:48:51.898333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (2.0ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.547993"], ["updated_at", "2016-12-06 13:48:52.547993"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.563346"], ["updated_at", "2016-12-06 13:48:52.563346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (1.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.0ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.614304"], ["updated_at", "2016-12-06 13:48:52.614304"]] SQL (1.0ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.625326"], ["updated_at", "2016-12-06 13:48:52.625326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a3d09db1-a0f1-4086-9e58-97f688928e32' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.7ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a3d09db1-a0f1-4086-9e58-97f688928e32"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.687455"], ["updated_at", "2016-12-06 13:48:52.687455"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a3d09db1-a0f1-4086-9e58-97f688928e32', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.687455', "updated_at" = '2016-12-06 13:48:52.687455', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.694164', "updated_at" = '2016-12-06 13:48:52.694469', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a3d09db1-a0f1-4086-9e58-97f688928e32' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.723077"], ["updated_at", "2016-12-06 13:48:52.723077"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.725003"], ["updated_at", "2016-12-06 13:48:52.725003"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.726313"], ["updated_at", "2016-12-06 13:48:52.726313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.732281"], ["updated_at", "2016-12-06 13:48:52.732281"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.734376"], ["updated_at", "2016-12-06 13:48:52.734376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.740849"], ["updated_at", "2016-12-06 13:48:52.740849"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.742579"], ["updated_at", "2016-12-06 13:48:52.742579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f220f59f-26ed-45ba-a73f-fca0ec91a9e8' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f220f59f-26ed-45ba-a73f-fca0ec91a9e8"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.749917"], ["updated_at", "2016-12-06 13:48:52.749917"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f220f59f-26ed-45ba-a73f-fca0ec91a9e8', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.749917', "updated_at" = '2016-12-06 13:48:52.749917', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.753442', "updated_at" = '2016-12-06 13:48:52.753675', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f220f59f-26ed-45ba-a73f-fca0ec91a9e8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.762688"], ["updated_at", "2016-12-06 13:48:52.762688"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.764294"], ["updated_at", "2016-12-06 13:48:52.764294"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.765376"], ["updated_at", "2016-12-06 13:48:52.765376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.772762"], ["updated_at", "2016-12-06 13:48:52.772762"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.774789"], ["updated_at", "2016-12-06 13:48:52.774789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.781927"], ["updated_at", "2016-12-06 13:48:52.781927"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.783932"], ["updated_at", "2016-12-06 13:48:52.783932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '09b7d986-07b2-4247-980e-444a26af5dbf' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "09b7d986-07b2-4247-980e-444a26af5dbf"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.791885"], ["updated_at", "2016-12-06 13:48:52.791885"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '09b7d986-07b2-4247-980e-444a26af5dbf', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.791885', "updated_at" = '2016-12-06 13:48:52.791885', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.795671', "updated_at" = '2016-12-06 13:48:52.795986', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '09b7d986-07b2-4247-980e-444a26af5dbf' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.804989"], ["updated_at", "2016-12-06 13:48:52.804989"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.806348"], ["updated_at", "2016-12-06 13:48:52.806348"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.807394"], ["updated_at", "2016-12-06 13:48:52.807394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.816057"], ["updated_at", "2016-12-06 13:48:52.816057"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.819272"], ["updated_at", "2016-12-06 13:48:52.819272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.826003"], ["updated_at", "2016-12-06 13:48:52.826003"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.827629"], ["updated_at", "2016-12-06 13:48:52.827629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'd92a9c5e-22a1-4d52-a468-34d7c3508656' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "d92a9c5e-22a1-4d52-a468-34d7c3508656"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.836062"], ["updated_at", "2016-12-06 13:48:52.836062"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'd92a9c5e-22a1-4d52-a468-34d7c3508656', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.836062', "updated_at" = '2016-12-06 13:48:52.836062', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.840368', "updated_at" = '2016-12-06 13:48:52.840685', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'd92a9c5e-22a1-4d52-a468-34d7c3508656' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.851256"], ["updated_at", "2016-12-06 13:48:52.851256"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.852675"], ["updated_at", "2016-12-06 13:48:52.852675"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.853738"], ["updated_at", "2016-12-06 13:48:52.853738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.859825"], ["updated_at", "2016-12-06 13:48:52.859825"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.862504"], ["updated_at", "2016-12-06 13:48:52.862504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.871383"], ["updated_at", "2016-12-06 13:48:52.871383"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.873335"], ["updated_at", "2016-12-06 13:48:52.873335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4a2162cd-d038-4d3b-a607-c93fdfa810e1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4a2162cd-d038-4d3b-a607-c93fdfa810e1"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.881598"], ["updated_at", "2016-12-06 13:48:52.881598"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4a2162cd-d038-4d3b-a607-c93fdfa810e1', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.881598', "updated_at" = '2016-12-06 13:48:52.881598', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.885552', "updated_at" = '2016-12-06 13:48:52.885819', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4a2162cd-d038-4d3b-a607-c93fdfa810e1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.895548"], ["updated_at", "2016-12-06 13:48:52.895548"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.896902"], ["updated_at", "2016-12-06 13:48:52.896902"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.897964"], ["updated_at", "2016-12-06 13:48:52.897964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.904742"], ["updated_at", "2016-12-06 13:48:52.904742"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.907610"], ["updated_at", "2016-12-06 13:48:52.907610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.915491"], ["updated_at", "2016-12-06 13:48:52.915491"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.918396"], ["updated_at", "2016-12-06 13:48:52.918396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8cfa7c4c-d9a7-460f-a41b-5f2ab7282be0' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8cfa7c4c-d9a7-460f-a41b-5f2ab7282be0"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.926732"], ["updated_at", "2016-12-06 13:48:52.926732"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8cfa7c4c-d9a7-460f-a41b-5f2ab7282be0', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.926732', "updated_at" = '2016-12-06 13:48:52.926732', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.930404', "updated_at" = '2016-12-06 13:48:52.930685', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8cfa7c4c-d9a7-460f-a41b-5f2ab7282be0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.941110"], ["updated_at", "2016-12-06 13:48:52.941110"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.942446"], ["updated_at", "2016-12-06 13:48:52.942446"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.943539"], ["updated_at", "2016-12-06 13:48:52.943539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.949591"], ["updated_at", "2016-12-06 13:48:52.949591"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:52.951798"], ["updated_at", "2016-12-06 13:48:52.951798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:52.958907"], ["updated_at", "2016-12-06 13:48:52.958907"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:52.962012"], ["updated_at", "2016-12-06 13:48:52.962012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2eaae254-d6a0-476f-99a3-53da0292a732' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2eaae254-d6a0-476f-99a3-53da0292a732"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:52.975806"], ["updated_at", "2016-12-06 13:48:52.975806"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2eaae254-d6a0-476f-99a3-53da0292a732', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:52.975806', "updated_at" = '2016-12-06 13:48:52.975806', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:52.979483', "updated_at" = '2016-12-06 13:48:52.979741', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2eaae254-d6a0-476f-99a3-53da0292a732' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:52.991485"], ["updated_at", "2016-12-06 13:48:52.991485"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.992883"], ["updated_at", "2016-12-06 13:48:52.992883"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:52.993956"], ["updated_at", "2016-12-06 13:48:52.993956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:52.999986"], ["updated_at", "2016-12-06 13:48:52.999986"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:53.002486"], ["updated_at", "2016-12-06 13:48:53.002486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:53.009764"], ["updated_at", "2016-12-06 13:48:53.009764"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:53.012015"], ["updated_at", "2016-12-06 13:48:53.012015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1ce471a8-f38d-467e-bab4-53091fcc97fe' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1ce471a8-f38d-467e-bab4-53091fcc97fe"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:53.024085"], ["updated_at", "2016-12-06 13:48:53.024085"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1ce471a8-f38d-467e-bab4-53091fcc97fe', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:53.024085', "updated_at" = '2016-12-06 13:48:53.024085', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:53.027688', "updated_at" = '2016-12-06 13:48:53.027925', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1ce471a8-f38d-467e-bab4-53091fcc97fe' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:53.037697"], ["updated_at", "2016-12-06 13:48:53.037697"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.039241"], ["updated_at", "2016-12-06 13:48:53.039241"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.040762"], ["updated_at", "2016-12-06 13:48:53.040762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:53.048742"], ["updated_at", "2016-12-06 13:48:53.048742"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:53.050771"], ["updated_at", "2016-12-06 13:48:53.050771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:48:53.057601"], ["updated_at", "2016-12-06 13:48:53.057601"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:48:53.059371"], ["updated_at", "2016-12-06 13:48:53.059371"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c05eb2b5-7881-4ec8-a1d7-4846073dc59a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c05eb2b5-7881-4ec8-a1d7-4846073dc59a"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:53.074324"], ["updated_at", "2016-12-06 13:48:53.074324"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c05eb2b5-7881-4ec8-a1d7-4846073dc59a', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:53.074324', "updated_at" = '2016-12-06 13:48:53.074324', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:53.078049', "updated_at" = '2016-12-06 13:48:53.078288', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c05eb2b5-7881-4ec8-a1d7-4846073dc59a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:53.088170"], ["updated_at", "2016-12-06 13:48:53.088170"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.089842"], ["updated_at", "2016-12-06 13:48:53.089842"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.091076"], ["updated_at", "2016-12-06 13:48:53.091076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:53.098252"], ["updated_at", "2016-12-06 13:48:53.098252"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:53.100552"], ["updated_at", "2016-12-06 13:48:53.100552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '113a98cb-6af3-47a4-a5a0-7238cc413d4c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "113a98cb-6af3-47a4-a5a0-7238cc413d4c"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:48:53.107381"], ["updated_at", "2016-12-06 13:48:53.107381"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '113a98cb-6af3-47a4-a5a0-7238cc413d4c', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:48:53.107381', "updated_at" = '2016-12-06 13:48:53.107381', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:48:53.110953', "updated_at" = '2016-12-06 13:48:53.111186', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '113a98cb-6af3-47a4-a5a0-7238cc413d4c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:48:53.125021"], ["updated_at", "2016-12-06 13:48:53.125021"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.126441"], ["updated_at", "2016-12-06 13:48:53.126441"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:48:53.127509"], ["updated_at", "2016-12-06 13:48:53.127509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:48:53.134143"], ["updated_at", "2016-12-06 13:48:53.134143"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:48:53.136635"], ["updated_at", "2016-12-06 13:48:53.136635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:40.709105"], ["updated_at", "2016-12-06 13:49:40.709105"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:40.733527"], ["updated_at", "2016-12-06 13:49:40.733527"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:40.735701"], ["updated_at", "2016-12-06 13:49:40.735701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:40.884482"], ["updated_at", "2016-12-06 13:49:40.884482"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:40.892182"], ["updated_at", "2016-12-06 13:49:40.892182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:40.936351"], ["updated_at", "2016-12-06 13:49:40.936351"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:40.944254"], ["updated_at", "2016-12-06 13:49:40.944254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.4ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a883ad26-f9c6-4d41-b553-b942b957110e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a883ad26-f9c6-4d41-b553-b942b957110e"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:40.994023"], ["updated_at", "2016-12-06 13:49:40.994023"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a883ad26-f9c6-4d41-b553-b942b957110e', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:40.994023', "updated_at" = '2016-12-06 13:49:40.994023', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:40.998737', "updated_at" = '2016-12-06 13:49:40.999279', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a883ad26-f9c6-4d41-b553-b942b957110e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.024551"], ["updated_at", "2016-12-06 13:49:41.024551"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.026012"], ["updated_at", "2016-12-06 13:49:41.026012"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.027092"], ["updated_at", "2016-12-06 13:49:41.027092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.033909"], ["updated_at", "2016-12-06 13:49:41.033909"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.038041"], ["updated_at", "2016-12-06 13:49:41.038041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.045971"], ["updated_at", "2016-12-06 13:49:41.045971"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.047860"], ["updated_at", "2016-12-06 13:49:41.047860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '787d813d-4c3e-4ffa-a923-347a5a762a45' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "787d813d-4c3e-4ffa-a923-347a5a762a45"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.057788"], ["updated_at", "2016-12-06 13:49:41.057788"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '787d813d-4c3e-4ffa-a923-347a5a762a45', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.057788', "updated_at" = '2016-12-06 13:49:41.057788', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.061658', "updated_at" = '2016-12-06 13:49:41.061905', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '787d813d-4c3e-4ffa-a923-347a5a762a45' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.076486"], ["updated_at", "2016-12-06 13:49:41.076486"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.078759"], ["updated_at", "2016-12-06 13:49:41.078759"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.080760"], ["updated_at", "2016-12-06 13:49:41.080760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.088968"], ["updated_at", "2016-12-06 13:49:41.088968"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.091274"], ["updated_at", "2016-12-06 13:49:41.091274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.098099"], ["updated_at", "2016-12-06 13:49:41.098099"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.101566"], ["updated_at", "2016-12-06 13:49:41.101566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6f1089da-7a42-41af-8dcd-cd4f64ace616' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6f1089da-7a42-41af-8dcd-cd4f64ace616"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.113293"], ["updated_at", "2016-12-06 13:49:41.113293"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6f1089da-7a42-41af-8dcd-cd4f64ace616', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.113293', "updated_at" = '2016-12-06 13:49:41.113293', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.117105', "updated_at" = '2016-12-06 13:49:41.117384', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6f1089da-7a42-41af-8dcd-cd4f64ace616' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.128309"], ["updated_at", "2016-12-06 13:49:41.128309"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.130661"], ["updated_at", "2016-12-06 13:49:41.130661"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.132110"], ["updated_at", "2016-12-06 13:49:41.132110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.138727"], ["updated_at", "2016-12-06 13:49:41.138727"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.140787"], ["updated_at", "2016-12-06 13:49:41.140787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.149105"], ["updated_at", "2016-12-06 13:49:41.149105"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.151277"], ["updated_at", "2016-12-06 13:49:41.151277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '95560e85-18a9-4c79-a44c-5c87924202f3' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "95560e85-18a9-4c79-a44c-5c87924202f3"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.161067"], ["updated_at", "2016-12-06 13:49:41.161067"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '95560e85-18a9-4c79-a44c-5c87924202f3', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.161067', "updated_at" = '2016-12-06 13:49:41.161067', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.167226', "updated_at" = '2016-12-06 13:49:41.167850', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '95560e85-18a9-4c79-a44c-5c87924202f3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.179225"], ["updated_at", "2016-12-06 13:49:41.179225"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.181569"], ["updated_at", "2016-12-06 13:49:41.181569"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.183730"], ["updated_at", "2016-12-06 13:49:41.183730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.192638"], ["updated_at", "2016-12-06 13:49:41.192638"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.195143"], ["updated_at", "2016-12-06 13:49:41.195143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.203486"], ["updated_at", "2016-12-06 13:49:41.203486"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.206645"], ["updated_at", "2016-12-06 13:49:41.206645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0fbc79a3-d392-4996-8720-79aa55e4cbf2' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0fbc79a3-d392-4996-8720-79aa55e4cbf2"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.214787"], ["updated_at", "2016-12-06 13:49:41.214787"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0fbc79a3-d392-4996-8720-79aa55e4cbf2', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.214787', "updated_at" = '2016-12-06 13:49:41.214787', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.218518', "updated_at" = '2016-12-06 13:49:41.218768', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0fbc79a3-d392-4996-8720-79aa55e4cbf2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.228433"], ["updated_at", "2016-12-06 13:49:41.228433"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.229774"], ["updated_at", "2016-12-06 13:49:41.229774"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.230839"], ["updated_at", "2016-12-06 13:49:41.230839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.236813"], ["updated_at", "2016-12-06 13:49:41.236813"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.239022"], ["updated_at", "2016-12-06 13:49:41.239022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.246283"], ["updated_at", "2016-12-06 13:49:41.246283"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.248796"], ["updated_at", "2016-12-06 13:49:41.248796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f47b6ff1-43c7-46b1-9038-38a1c320d6bd' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f47b6ff1-43c7-46b1-9038-38a1c320d6bd"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.258780"], ["updated_at", "2016-12-06 13:49:41.258780"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f47b6ff1-43c7-46b1-9038-38a1c320d6bd', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.258780', "updated_at" = '2016-12-06 13:49:41.258780', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.262534', "updated_at" = '2016-12-06 13:49:41.262778', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f47b6ff1-43c7-46b1-9038-38a1c320d6bd' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.271576"], ["updated_at", "2016-12-06 13:49:41.271576"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.273119"], ["updated_at", "2016-12-06 13:49:41.273119"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.274338"], ["updated_at", "2016-12-06 13:49:41.274338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.281255"], ["updated_at", "2016-12-06 13:49:41.281255"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.285409"], ["updated_at", "2016-12-06 13:49:41.285409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.294529"], ["updated_at", "2016-12-06 13:49:41.294529"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.296737"], ["updated_at", "2016-12-06 13:49:41.296737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0beb78fe-94a0-4248-a79d-6b1d25d4d710' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0beb78fe-94a0-4248-a79d-6b1d25d4d710"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.306905"], ["updated_at", "2016-12-06 13:49:41.306905"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0beb78fe-94a0-4248-a79d-6b1d25d4d710', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.306905', "updated_at" = '2016-12-06 13:49:41.306905', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.310710', "updated_at" = '2016-12-06 13:49:41.310982', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0beb78fe-94a0-4248-a79d-6b1d25d4d710' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.319768"], ["updated_at", "2016-12-06 13:49:41.319768"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.321243"], ["updated_at", "2016-12-06 13:49:41.321243"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.322357"], ["updated_at", "2016-12-06 13:49:41.322357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.328700"], ["updated_at", "2016-12-06 13:49:41.328700"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.330879"], ["updated_at", "2016-12-06 13:49:41.330879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.338345"], ["updated_at", "2016-12-06 13:49:41.338345"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.340402"], ["updated_at", "2016-12-06 13:49:41.340402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '24de2ed9-41a6-4084-85f7-f78545b789d9' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "24de2ed9-41a6-4084-85f7-f78545b789d9"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.351726"], ["updated_at", "2016-12-06 13:49:41.351726"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '24de2ed9-41a6-4084-85f7-f78545b789d9', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.351726', "updated_at" = '2016-12-06 13:49:41.351726', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.357028', "updated_at" = '2016-12-06 13:49:41.357298', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '24de2ed9-41a6-4084-85f7-f78545b789d9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.366932"], ["updated_at", "2016-12-06 13:49:41.366932"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.368311"], ["updated_at", "2016-12-06 13:49:41.368311"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.369393"], ["updated_at", "2016-12-06 13:49:41.369393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.375813"], ["updated_at", "2016-12-06 13:49:41.375813"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.378074"], ["updated_at", "2016-12-06 13:49:41.378074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 13:49:41.386829"], ["updated_at", "2016-12-06 13:49:41.386829"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 13:49:41.388846"], ["updated_at", "2016-12-06 13:49:41.388846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '87a34097-898d-4703-bfb8-a08d106af817' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "87a34097-898d-4703-bfb8-a08d106af817"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.397226"], ["updated_at", "2016-12-06 13:49:41.397226"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '87a34097-898d-4703-bfb8-a08d106af817', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.397226', "updated_at" = '2016-12-06 13:49:41.397226', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.401691', "updated_at" = '2016-12-06 13:49:41.401987', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '87a34097-898d-4703-bfb8-a08d106af817' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.412703"], ["updated_at", "2016-12-06 13:49:41.412703"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.414198"], ["updated_at", "2016-12-06 13:49:41.414198"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.415340"], ["updated_at", "2016-12-06 13:49:41.415340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.422572"], ["updated_at", "2016-12-06 13:49:41.422572"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.425951"], ["updated_at", "2016-12-06 13:49:41.425951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '79e12da4-8dc8-4cfd-97e2-d33e5e33ae3a' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "79e12da4-8dc8-4cfd-97e2-d33e5e33ae3a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 13:49:41.433896"], ["updated_at", "2016-12-06 13:49:41.433896"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '79e12da4-8dc8-4cfd-97e2-d33e5e33ae3a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 13:49:41.433896', "updated_at" = '2016-12-06 13:49:41.433896', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 13:49:41.438063', "updated_at" = '2016-12-06 13:49:41.438313', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '79e12da4-8dc8-4cfd-97e2-d33e5e33ae3a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 13:49:41.447862"], ["updated_at", "2016-12-06 13:49:41.447862"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.449620"], ["updated_at", "2016-12-06 13:49:41.449620"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 13:49:41.451040"], ["updated_at", "2016-12-06 13:49:41.451040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 13:49:41.458606"], ["updated_at", "2016-12-06 13:49:41.458606"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 13:49:41.460771"], ["updated_at", "2016-12-06 13:49:41.460771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (2.0ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.4ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.4ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.1ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.2ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (1.0ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.0ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.3ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (0.8ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (0.8ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (0.9ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.1ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (0.8ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (1.0ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (1.1ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.1ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (1.1ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.0ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (1.0ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.1ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.1ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.0ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.1ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.3ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (1.2ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.3ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (0.9ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.3ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.1ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.3ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (1.3ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.0ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.1ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.3ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (0.9ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.1ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.1ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (0.9ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.2ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.2ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.1ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.2ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.3ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.2ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (1.3ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.4ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.0ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.0ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.1ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.2ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.2ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.1ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (0.9ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.3ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.3ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.1ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (0.9ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.0ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.0ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.1ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (0.9ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.2ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.1ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (15.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (6.7ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (3.9ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.1ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.2ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.3ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (0.9ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (1.1ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.3ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.5ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.5ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.6ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.2ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.0ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.0ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (1.0ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.1ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.8ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (0.8ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.1ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.1ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (1.0ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.9ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (0.9ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.4ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.6ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.1ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (0.9ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (0.8ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (0.8ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (0.9ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.2ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.2ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.3ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.2ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.1ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (0.9ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (1.2ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (1.4ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.1ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.0ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.1ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.8ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.2ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.0ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.1ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.1ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.3ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.0ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.3ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.4ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.3ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (1.2ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.2ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.3ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.3ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.0ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.1ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.4ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.2ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (1.3ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.0ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.0ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.1ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.2ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.3ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.3ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.3ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.8ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (0.9ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.1ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.2ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.2ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.1ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.1ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (1.1ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.2ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.2ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510155617')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516124327')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204454')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130518092324')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130609145812')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130624134506')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130703131515')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913083529')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914105736')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130916160033')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130917161700')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131116180719')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131127165445')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140122204702')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140523165342')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605052208')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140707152124')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140708142312')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150709125105') Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.3ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.2ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.0ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.2ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (1.2ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.1ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.9ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (1.0ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.0ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (0.9ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (1.5ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.9ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (1.0ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (0.9ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (0.8ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.3ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (0.9ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.2ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.1ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.1ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.3ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.0ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.4ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.0ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (1.1ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (0.9ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.0ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.1ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.1ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.3ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.9ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.9ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.2ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.0ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.2ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.3ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.1ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.2ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.2ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.4ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.2ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (1.1ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.2ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.1ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.2ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.1ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.1ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.3ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.0ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (1.1ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.1ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.2ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.3ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.1ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.4ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.3ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (0.9ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.6ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.1ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.5ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.2ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.2ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.4ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.3ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.2ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.2ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (1.1ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.3ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.5ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.8ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.2ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.0ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.0ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (0.9ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.0ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (0.8ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.1ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.0ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (1.0ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.9ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.1ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (1.4ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.2ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (3.4ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.2ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (1.1ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.2ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.0ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.0ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.2ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.0ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.0ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (1.1ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (0.9ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.1ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.0ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (1.1ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.3ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (0.9ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.3ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.1ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.0ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.1ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.2ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.1ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.1ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.2ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.9ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.2ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.0ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.1ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.0ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.3ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (1.3ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (0.9ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.2ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.0ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (1.1ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.3ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.1ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (2.1ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.2ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.0ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.3ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.0ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.1ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.6ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.0ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.3ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.0ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.2ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.0ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.2ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (0.9ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.4ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.3ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (0.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true]  (1.4ms) CREATE TABLE "cms_blog_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_blog_id" integer, "locale" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_cms_blog_translations_on_cms_blog_id" ON "cms_blog_translations" ("cms_blog_id")  (1.3ms) CREATE TABLE "cms_blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "published" boolean DEFAULT 'f', "is_public" boolean DEFAULT 'f', "requires_login" boolean DEFAULT 'f', "row_order" integer, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "comments_allowed" boolean, "header_image" varchar, "requires_subscription" boolean DEFAULT 'f', "owner_id" integer, "owner_type" varchar, "image_email_header" varchar)  (1.0ms) CREATE INDEX "cms_blogs_published_index" ON "cms_blogs" ("published")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (1.0ms) CREATE INDEX "blogname_key" ON "cms_blogs" ("slug")  (0.8ms) CREATE TABLE "cms_contentitem_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_contentitem_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_072c3a76f87c96e2f91149eccd2a283dca2b613f" ON "cms_contentitem_translations" ("cms_contentitem_id")  (1.0ms) CREATE TABLE "cms_contentitems" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "itemtype" varchar(30) DEFAULT 'textile', "container" varchar(30), "row_order" integer DEFAULT 0, "enable_cache" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_contentitems_on_account_id" ON "cms_contentitems" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "cms_contentitems_cms_page_id_index" ON "cms_contentitems" ("cms_page_id")  (0.9ms) CREATE TABLE "cms_media_file_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_media_file_id" integer, "locale" varchar, "title" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE INDEX "index_cms_media_file_translations_on_cms_media_file_id" ON "cms_media_file_translations" ("cms_media_file_id")  (1.1ms) CREATE TABLE "cms_media_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "media" varchar, "media_file_size" integer, "media_content_type" varchar, "folder" varchar, "generate_retina" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.0ms) CREATE UNIQUE INDEX "index_media_folder_account_id" ON "cms_media_files" ("media", "folder", "account_id")  (0.9ms) CREATE TABLE "cms_page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_page_id" integer, "locale" varchar, "title" varchar, "menutitle" varchar, "created_at" datetime, "updated_at" datetime, "summary" text)  (0.8ms) CREATE INDEX "index_cms_page_translations_on_cms_page_id" ON "cms_page_translations" ("cms_page_id")  (1.2ms) CREATE TABLE "cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(50) DEFAULT '' NOT NULL, "pagetype" varchar(20) DEFAULT 'content' NOT NULL, "published" boolean DEFAULT 'f' NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "link" varchar DEFAULT '' NOT NULL, "menuimage" varchar, "requires_login" boolean DEFAULT 'f', "ancestry" varchar, "ancestry_depth" integer DEFAULT 0, "updated_on" datetime, "created_on" datetime, "lock_version" integer DEFAULT 0 NOT NULL, "account_id" integer, "requires_subscription" boolean DEFAULT 'f', "is_public" boolean DEFAULT 't', "row_order" integer, "featured_image" varchar, "header_image" varchar)  (0.9ms) CREATE INDEX "index_cms_pages_on_account_id" ON "cms_pages" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (0.9ms) CREATE INDEX "index_cms_pages_on_ancestry" ON "cms_pages" ("ancestry")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_cms_pages_on_ancestry_depth" ON "cms_pages" ("ancestry_depth")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "cms_pages_published_index" ON "cms_pages" ("published")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'  (1.0ms) CREATE INDEX "pagename_key" ON "cms_pages" ("slug")  (1.2ms) CREATE TABLE "cms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_post_id" integer, "locale" varchar, "title" varchar, "content" text, "summary" text, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE INDEX "index_cms_post_translations_on_cms_post_id" ON "cms_post_translations" ("cms_post_id")  (0.9ms) CREATE TABLE "cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "cms_blog_id" integer, "featured_image" varchar, "published_on" datetime, "updated_on" datetime, "created_on" datetime, "account_id" integer, "lock_version" integer DEFAULT 0 NOT NULL, "notification_sent_on" datetime, "comments_count" integer DEFAULT 0, "comments_allowed" boolean)  (1.1ms) CREATE INDEX "cms_posts_published_index" ON "cms_posts" ("published_on")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (1.1ms) CREATE INDEX "postname_key" ON "cms_posts" ("slug")  (1.1ms) CREATE TABLE "cms_snippet_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cms_snippet_id" integer, "locale" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_cms_snippet_translations_on_cms_snippet_id" ON "cms_snippet_translations" ("cms_snippet_id")  (1.0ms) CREATE TABLE "cms_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "itemtype" varchar(30) DEFAULT 'markdown', "slug" varchar, "description" varchar, "enable_cache" boolean DEFAULT 't' NOT NULL, "published" boolean DEFAULT 't' NOT NULL, "created_on" datetime, "updated_on" datetime, "lock_version" integer DEFAULT 0, "account_id" integer)  (1.0ms) CREATE INDEX "index_cms_snippets_on_account_id" ON "cms_snippets" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'  (1.2ms) CREATE INDEX "index_cms_snippets_on_slug" ON "cms_snippets" ("slug")  (1.1ms) CREATE TABLE "core_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "contact_email" varchar, "domain" varchar, "account_prefix" varchar, "default_site_id" integer, "created_at" datetime, "updated_at" datetime, "next_invoice_num" integer DEFAULT 1000)  (1.1ms) CREATE TABLE "core_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "browser" varchar, "session_id" varchar, "ip_address" varchar, "controller" varchar, "action" varchar, "params" varchar, "slug" varchar, "lesson" varchar, "created_at" datetime)   (1.0ms) CREATE INDEX "index_core_activities_on_account_id" ON "core_activities" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_activities_on_user_id" ON "core_activities" ("user_id")  (0.9ms) CREATE TABLE "core_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "line1" varchar, "line2" varchar, "city" varchar, "state" varchar, "zip" varchar, "country_code" varchar(2), "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE UNIQUE INDEX "index_core_addresses_on_addressable_type_and_addressable_id" ON "core_addresses" ("addressable_type", "addressable_id")  (1.2ms) CREATE TABLE "core_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "row_order" integer, "account_id" integer, "created_on" datetime, "updated_on" datetime)   (1.0ms) CREATE TABLE "core_category_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_category_id" integer, "locale" varchar, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_category_translation" ON "core_category_translations" ("core_category_id")  (1.1ms) CREATE TABLE "core_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(50) DEFAULT '', "body" text, "commentable_id" integer, "commentable_type" varchar, "user_id" integer, "role" varchar DEFAULT 'comments', "account_id" integer, "created_at" datetime, "updated_at" datetime, "type" varchar, "ancestry" varchar, "ancestry_depth" integer DEFAULT 0)  (1.2ms) CREATE INDEX "index_core_comments_on_commentable_id" ON "core_comments" ("commentable_id")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (0.9ms) CREATE INDEX "index_core_comments_on_commentable_type" ON "core_comments" ("commentable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'   (1.2ms) CREATE INDEX "index_core_comments_on_user_id" ON "core_comments" ("user_id")  (1.1ms) CREATE TABLE "core_custom_field_def_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_custom_field_def_id" integer, "locale" varchar, "label" varchar, "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE INDEX "core_custom_field_def_translations_index" ON "core_custom_field_def_translations" ("core_custom_field_def_id")  (1.4ms) CREATE TABLE "core_custom_field_defs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "name" varchar, "field_type" varchar, "row_order" integer, "required" boolean DEFAULT 'f', "properties" varchar(2048), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_field_defs_on_account_id" ON "core_custom_field_defs" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (1.3ms) CREATE INDEX "index_core_custom_field_defs_on_owner_id_and_owner_type" ON "core_custom_field_defs" ("owner_id", "owner_type")  (0.9ms) CREATE TABLE "core_custom_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar, "custom_field_def_id" integer, "field_data" varchar(4096), "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.0ms) CREATE INDEX "index_core_custom_fields_on_account_id" ON "core_custom_fields" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (1.1ms) CREATE INDEX "index_core_custom_fields_on_owner_id_and_owner_type" ON "core_custom_fields" ("owner_id", "owner_type")  (1.2ms) CREATE TABLE "core_payment_histories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer, "owner_type" varchar(30), "anchor_id" varchar(20), "order_ref" varchar, "item_ref" varchar, "item_name" varchar, "quantity" integer, "cost" varchar, "discount" varchar, "total_cents" integer, "total_currency" varchar(3), "payment_method" varchar, "payment_date" datetime, "bill_to_name" varchar, "item_details" text, "order_details" text, "status" varchar, "user_profile_id" integer, "created_on" datetime, "account_id" integer, "notify_data" text, "transaction_id" varchar)   (1.0ms) CREATE INDEX "index_payment_histories_on_anchor_id" ON "core_payment_histories" ("anchor_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.2ms) CREATE INDEX "index_payment_histories_on_item_ref" ON "core_payment_histories" ("item_ref")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.2ms) CREATE INDEX "index_payment_histories_on_order_ref" ON "core_payment_histories" ("order_ref")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (1.1ms) CREATE INDEX "index_payment_histories_on_owner_id" ON "core_payment_histories" ("owner_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'   (1.1ms) CREATE INDEX "index_payment_histories_on_owner_type" ON "core_payment_histories" ("owner_type")  (1.2ms) CREATE TABLE "core_system_email_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "core_system_email_id" integer, "locale" varchar, "subject" varchar, "body" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "core_system_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email_type" varchar, "emailable_id" integer, "emailable_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (1.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer, "payment_reminder_history" text)   (1.0ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (1.2ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (1.1ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (1.3ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime, "sidebar" text, "summary" text)   (1.0ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean, "image" varchar)  (1.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (1.0ms) CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (1.1ms) CREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")  (1.4ms) CREATE TABLE "globalize_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(2), "english_name" varchar, "date_format" varchar, "currency_format" varchar, "currency_code" varchar(3), "thousands_sep" varchar(2), "decimal_sep" varchar(2), "currency_decimal_sep" varchar(2), "number_grouping_scheme" varchar, "continent" varchar, "locale" varchar)  (0.9ms) CREATE INDEX "index_globalize_countries_on_code" ON "globalize_countries" ("code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (1.1ms) CREATE INDEX "index_globalize_countries_on_locale" ON "globalize_countries" ("locale")  (1.5ms) CREATE TABLE "globalize_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_639_1" varchar(2), "iso_639_2" varchar(3), "iso_639_3" varchar(3), "rfc_3066" varchar, "english_name" varchar, "english_name_locale" varchar, "english_name_modifier" varchar, "native_name" varchar, "native_name_locale" varchar, "native_name_modifier" varchar, "macro_language" boolean, "direction" varchar, "pluralization" varchar, "scope" varchar(1))  (1.3ms) CREATE INDEX "index_globalize_languages_on_iso_639_1" ON "globalize_languages" ("iso_639_1")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (0.9ms) CREATE INDEX "index_globalize_languages_on_iso_639_2" ON "globalize_languages" ("iso_639_2")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (0.9ms) CREATE INDEX "index_globalize_languages_on_iso_639_3" ON "globalize_languages" ("iso_639_3")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'   (1.2ms) CREATE INDEX "index_globalize_languages_on_rfc_3066" ON "globalize_languages" ("rfc_3066")  (1.1ms) CREATE TABLE "preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "group_id" integer, "group_type" varchar, "value" varchar, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE UNIQUE INDEX "index_preferences_on_owner_and_name_and_preference" ON "preferences" ("owner_id", "owner_type", "name", "group_id", "group_type")  (1.1ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.1ms) CREATE INDEX "index_roles_on_account_id" ON "roles" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'   (1.2ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (1.1ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")  (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime)  (1.3ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (1.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")  (1.4ms) CREATE TABLE "user_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "public_name" varchar(50) DEFAULT '', "first_name" varchar(50) DEFAULT '', "last_name" varchar(50) DEFAULT '', "address" varchar(70) DEFAULT '', "address2" varchar(70) DEFAULT '', "city" varchar(30) DEFAULT '', "state" varchar(30) DEFAULT '', "zipcode" varchar(10) DEFAULT '', "country_id" integer DEFAULT 0, "phone" varchar(20) DEFAULT '', "cell" varchar(20) DEFAULT '', "fax" varchar(20) DEFAULT '', "workphone" varchar(20) DEFAULT '', "website" varchar(50) DEFAULT '', "gender" varchar(1) DEFAULT '', "status" integer DEFAULT 0, "lock_version" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "account_id" integer, "email" varchar, "public_avatar" varchar, "public_avatar_file_size" integer, "public_avatar_content_type" varchar, "private_avatar" varchar, "private_avatar_file_size" integer, "private_avatar_content_type" varchar, "use_private_avatar_for_public" boolean DEFAULT 'f', "favored_locale" varchar)  (1.1ms) CREATE TABLE "user_site_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "last_access_at" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "uuid" varchar(40))   (1.0ms) CREATE INDEX "index_user_site_profiles_on_uuid" ON "user_site_profiles" ("uuid")  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "created_at" datetime, "updated_at" datetime, "account_id" integer)   (1.4ms) CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'   (1.4ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (1.1ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)  (1.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")  (1.0ms) CREATE TABLE "version_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "foreign_key_name" varchar NOT NULL, "foreign_key_id" integer)  (1.2ms) CREATE INDEX "index_version_associations_on_foreign_key" ON "version_associations" ("foreign_key_name", "foreign_key_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'  (0.9ms) CREATE INDEX "index_version_associations_on_version_id" ON "version_associations" ("version_id")  (1.2ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime, "object_changes" text(1073741823), "locale" varchar, "transaction_id" integer)  (1.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'  (1.1ms) CREATE INDEX "index_versions_on_transaction_id" ON "versions" ("transaction_id")  (1.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  (1.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154136')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170927')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170928')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170929')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170930')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170931')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170932')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170934')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170935')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170936')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170937')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170938')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170939')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170940')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170941')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170942')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170943')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170944')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170945')  (8.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170946')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170947')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170948')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170949')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170950')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170951')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170952')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170953')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170954')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170955')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170956')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170957')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170958')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170959')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141114170960')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103740')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103741')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103742')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103743')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103744')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103745')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103746')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103748')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103749')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103750')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103751')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103752')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141119103753')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160128154135') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateEvents (20130510155617)  (0.1ms) begin transaction  (0.7ms) DROP TABLE "ems_workshop_translations"  (0.3ms) CREATE TABLE "ems_workshop_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_id" integer, "locale" varchar, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)  (0.3ms) DROP TABLE "ems_workshops"  (0.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "is_closed" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer)  (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.4ms) DROP TABLE "ems_registrations"  (0.3ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "user_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0)  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) DROP TABLE "ems_workshop_price_translations"  (0.1ms) CREATE TABLE "ems_workshop_price_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ems_workshop_price_id" integer, "locale" varchar, "price_description" varchar, "sub_description" text, "payment_details" text, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "ems_workshop_prices"  (0.2ms) CREATE TABLE "ems_workshop_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "price_cents" integer, "price_currency" varchar(10), "alt1_price_cents" integer, "alt1_price_currency" varchar(10), "alt2_price_cents" integer, "alt2_price_currency" varchar(10), "disabled" boolean DEFAULT 'f' NOT NULL, "valid_until" date, "valid_starting_on" date, "total_available" integer, "recurring_amount" integer, "recurring_period" integer, "recurring_number" integer, "row_order" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130510155617"]]  (1.5ms) commit transaction Migrating to AddLocaleToRegistration (20130516124327)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_registrations" ADD "registered_locale" varchar(5) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130516124327"]]  (1.0ms) commit transaction Migrating to AddUserProfileToRegistration (20130516204454)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "user_profile_id" integer  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "user_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.2ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130516204454"]]  (1.2ms) commit transaction Migrating to AddRequireAddress (20130518092324)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "require_account" boolean  (0.2ms) ALTER TABLE "ems_workshops" ADD "require_address" boolean  (0.2ms) ALTER TABLE "ems_workshops" ADD "require_photo" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130518092324"]]  (1.1ms) commit transaction Migrating to AddWorkshopPublished (20130609145812)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.1ms) CREATE INDEX "tworkshopname_key" ON "aems_workshops" ("slug")  (0.1ms) SELECT * FROM "ems_workshops"  (0.4ms) DROP TABLE "ems_workshops"  (1.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tworkshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tworkshopname_key' AND type='index'   (0.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.1ms) SELECT * FROM "aems_workshops"  (0.1ms) DROP TABLE "aems_workshops"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130609145812"]]  (1.3ms) commit transaction Migrating to AddAmountCurrency (20130624134506)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.3ms) DROP TABLE "ems_registrations"  (0.1ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.2ms) ALTER TABLE "ems_registrations" ADD "amount_paid_currency" varchar Registration Load (0.2ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130624134506"]]  (1.2ms) commit transaction Migrating to AddWorkshopCurrency (20130703131515)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "base_currency" varchar(3) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130703131515"]]  (0.8ms) commit transaction Migrating to AddEventFundingType (20130913083529)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "event_style" varchar DEFAULT 'workshop'  (0.2ms) ALTER TABLE "ems_workshops" ADD "funding_goal_cents" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130913083529"]]  (1.0ms) commit transaction Migrating to AddEnablePayments (20130914105736)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "payments_enabled" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130914105736"]]  (0.8ms) commit transaction Migrating to AddSidebarToWorkshop (20130916160033)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_workshop_translations" ADD "sidebar" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130916160033"]]  (0.9ms) commit transaction Migrating to AddShowAddress (20130917161700)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "show_address" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130917161700"]]  (0.9ms) commit transaction Migrating to AddDefaultFundingGoal (20131116180719)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer, "payments_enabled" boolean, "show_address" boolean)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'   (0.1ms) CREATE INDEX "tworkshopname_key" ON "aems_workshops" ("slug")  (0.1ms) SELECT * FROM "ems_workshops"  (0.3ms) DROP TABLE "ems_workshops"  (0.2ms) CREATE TABLE "ems_workshops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar, "starting_on" datetime, "ending_on" datetime, "deadline_on" date, "registrations_count" integer DEFAULT 0, "country_id" integer, "contact_email" varchar(60) DEFAULT '', "contact_phone" varchar(20) DEFAULT '', "info_url" varchar DEFAULT '', "require_review" boolean DEFAULT 'f', "waitlisting" boolean DEFAULT 'f', "closed_text" text, "published" boolean, "archived_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "require_account" boolean, "require_address" boolean, "require_photo" boolean, "base_currency" varchar(3), "event_style" varchar DEFAULT 'workshop', "funding_goal_cents" integer DEFAULT 0, "payments_enabled" boolean, "show_address" boolean)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tworkshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tworkshopname_key' AND type='index'  (0.1ms) CREATE INDEX "workshopname_key" ON "ems_workshops" ("slug")  (0.1ms) SELECT * FROM "aems_workshops"  (0.1ms) DROP TABLE "aems_workshops" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131116180719"]]  (1.3ms) commit transaction Migrating to AddPaymentReminder (20131127165445)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "payment_reminder_sent_on" datetime SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131127165445"]]  (0.7ms) commit transaction Migrating to AddEventImage (20140122204702)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_workshops" ADD "image" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140122204702"]]  (0.8ms) commit transaction Migrating to AddWorkshopSummary (20140523165342)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshop_translations" ADD "summary" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140523165342"]]  (1.0ms) commit transaction Migrating to AddUuidToRegistration (20140605052208)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "ems_registrations" ADD "uuid" varchar(36)  (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.2ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid") Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140605052208"]]  (1.2ms) commit transaction Migrating to AddRegistrationCommentCount (20140707152124)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "comments_count" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140707152124"]]  (1.1ms) commit transaction Migrating to AddPaymentComment (20140708142312)  (0.0ms) begin transaction  (0.5ms) ALTER TABLE "ems_registrations" ADD "payment_comment_id" integer  (0.2ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.2ms) CREATE INDEX "tindex_aems_registrations_on_uuid" ON "aems_registrations" ("uuid")  (0.1ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.2ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index'  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.2ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations"  (0.3ms) CREATE TEMPORARY TABLE "aems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "payment_comment_old" varchar, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "tindex_aems_registrations_on_uuid" ON "aems_registrations" ("uuid")  (0.2ms) CREATE INDEX "treceipt_code_key" ON "aems_registrations" ("receipt_code")  (0.1ms) SELECT * FROM "ems_registrations"  (0.1ms) DROP TABLE "ems_registrations"  (0.2ms) CREATE TABLE "ems_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "workshop_id" integer, "receipt_code" varchar(20), "receipt_requested" boolean, "workshop_price_id" integer, "amount_paid_cents" integer DEFAULT 0, "discount_value" integer, "discount_use_percent" boolean, "checkin_at" datetime, "aasm_state" varchar(20), "process_changed_on" datetime, "user_updated_at" datetime, "archived_on" datetime, "confirmed_on" datetime, "created_at" datetime, "updated_at" datetime, "account_id" integer, "lock_version" integer DEFAULT 0, "registered_locale" varchar(5), "user_profile_id" integer, "amount_paid_currency" varchar, "payment_reminder_sent_on" datetime, "uuid" varchar(36), "comments_count" integer, "payment_comment_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='treceipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='treceipt_code_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aems_registrations_on_uuid' AND type='index'  (0.1ms) CREATE INDEX "receipt_code_key" ON "ems_registrations" ("receipt_code")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "index_ems_registrations_on_uuid" ON "ems_registrations" ("uuid")  (0.1ms) SELECT * FROM "aems_registrations"  (0.1ms) DROP TABLE "aems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140708142312"]]  (1.2ms) commit transaction Migrating to AddPaymentReminderHistory (20150709125105)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_registrations" ADD "payment_reminder_history" text Registration Load (0.1ms) SELECT "ems_registrations".* FROM "ems_registrations" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150709125105"]]  (1.1ms) commit transaction Migrating to AddBccContactEmail (20160810081542)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "ems_workshops" ADD "bcc_contact_email" boolean DEFAULT 'f' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160810081542"]]  (0.8ms) commit transaction Migrating to IndexForeignKeysInEmsRegistrations (20160821150120)  (0.0ms) begin transaction  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.3ms) CREATE INDEX "index_ems_registrations_on_account_id" ON "ems_registrations" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_registrations_on_payment_comment_id" ON "ems_registrations" ("payment_comment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.3ms) CREATE INDEX "index_ems_registrations_on_user_profile_id" ON "ems_registrations" ("user_profile_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'  (0.1ms) CREATE INDEX "index_ems_registrations_on_workshop_id" ON "ems_registrations" ("workshop_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_registrations_on_workshop_price_id" ON "ems_registrations" ("workshop_price_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150120"]]  (1.8ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopPriceTranslations (20160821150121)  (0.1ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_price_translations_on_ems_workshop_price_id" ON "ems_workshop_price_translations" ("ems_workshop_price_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150121"]]  (1.1ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopPrices (20160821150122)  (0.0ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_prices_on_account_id" ON "ems_workshop_prices" ("account_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index'   (0.1ms) CREATE INDEX "index_ems_workshop_prices_on_workshop_id" ON "ems_workshop_prices" ("workshop_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150122"]]  (1.1ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshopTranslations (20160821150123)  (0.0ms) begin transaction  (0.3ms) CREATE INDEX "index_ems_workshop_translations_on_ems_workshop_id" ON "ems_workshop_translations" ("ems_workshop_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150123"]]  (0.9ms) commit transaction Migrating to IndexForeignKeysInEmsWorkshops (20160821150124)  (0.1ms) begin transaction  (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.4ms) CREATE INDEX "index_ems_workshops_on_account_id" ON "ems_workshops" ("account_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'   (0.1ms) CREATE INDEX "index_ems_workshops_on_country_id" ON "ems_workshops" ("country_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160821150124"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_blog_translations_on_cms_blog_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_blog_translations_on_cms_blog_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='blogname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='blogname_key' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='cms_blogs_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_blogs_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_072c3a76f87c96e2f91149eccd2a283dca2b613f' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_072c3a76f87c96e2f91149eccd2a283dca2b613f' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_contentitems_cms_page_id_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_contentitems_cms_page_id_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_contentitems_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_contentitems_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_media_file_translations_on_cms_media_file_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_media_file_translations_on_cms_media_file_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_media_folder_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_media_folder_account_id' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_cms_page_translations_on_cms_page_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_page_translations_on_cms_page_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='pagename_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='pagename_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_pages_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_pages_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry_depth' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_ancestry' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_ancestry' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_pages_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_pages_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_post_translations_on_cms_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_post_translations_on_cms_post_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='postname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='postname_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='cms_posts_published_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='cms_posts_published_index' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_snippet_translations_on_cms_snippet_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippet_translations_on_cms_snippet_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_slug' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cms_snippets_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cms_snippets_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_activities_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_activities_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_addresses_on_addressable_type_and_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_addresses_on_addressable_type_and_addressable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_category_translation' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_category_translation' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_comments_on_commentable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_comments_on_commentable_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='core_custom_field_def_translations_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='core_custom_field_def_translations_index' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_owner_id_and_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_owner_id_and_owner_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_field_defs_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_owner_id_and_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_owner_id_and_owner_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_core_custom_fields_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_core_custom_fields_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_owner_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_owner_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_order_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_order_ref' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_item_ref' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_item_ref' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_payment_histories_on_anchor_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_payment_histories_on_anchor_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_price_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_price_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_workshop_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_user_profile_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_payment_comment_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_registrations_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_registrations_on_uuid' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='receipt_code_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='receipt_code_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_price_translations_on_ems_workshop_price_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_price_translations_on_ems_workshop_price_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_workshop_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_prices_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshop_translations_on_ems_workshop_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshop_translations_on_ems_workshop_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_country_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ems_workshops_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ems_workshops_on_account_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='workshopname_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='workshopname_key' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='fk_follows' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_follows' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='fk_followables' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='fk_followables' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_locale' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_locale' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_countries_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_countries_on_code' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_rfc_3066' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_rfc_3066' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_3' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_2' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_globalize_languages_on_iso_639_1' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_preferences_on_owner_and_name_and_preference' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_preferences_on_owner_and_name_and_preference' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_roles_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_roles_on_account_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='taggings_idx' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_user_site_profiles_on_uuid' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_site_profiles_on_uuid' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_reset_password_token' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_email' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_confirmation_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_confirmation_token' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_account_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_account_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_version_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_version_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_version_associations_on_foreign_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_version_associations_on_foreign_key' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_versions_on_transaction_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_transaction_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_versions_on_item_type_and_item_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_votes_on_voter_id_and_voter_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_voter_id_and_voter_type_and_vote_scope' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'  Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.168709"], ["updated_at", "2016-12-06 14:13:09.168709"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.185127"], ["updated_at", "2016-12-06 14:13:09.185127"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.186774"], ["updated_at", "2016-12-06 14:13:09.186774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.312251"], ["updated_at", "2016-12-06 14:13:09.312251"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.319803"], ["updated_at", "2016-12-06 14:13:09.319803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.365962"], ["updated_at", "2016-12-06 14:13:09.365962"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.372583"], ["updated_at", "2016-12-06 14:13:09.372583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4035bd28-0653-44f1-aba0-eee5019a55cc' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4035bd28-0653-44f1-aba0-eee5019a55cc"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.413638"], ["updated_at", "2016-12-06 14:13:09.413638"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4035bd28-0653-44f1-aba0-eee5019a55cc', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.413638', "updated_at" = '2016-12-06 14:13:09.413638', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.417869', "updated_at" = '2016-12-06 14:13:09.418153', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4035bd28-0653-44f1-aba0-eee5019a55cc' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.443126"], ["updated_at", "2016-12-06 14:13:09.443126"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.445267"], ["updated_at", "2016-12-06 14:13:09.445267"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.446992"], ["updated_at", "2016-12-06 14:13:09.446992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.458001"], ["updated_at", "2016-12-06 14:13:09.458001"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.461076"], ["updated_at", "2016-12-06 14:13:09.461076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.468227"], ["updated_at", "2016-12-06 14:13:09.468227"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.469869"], ["updated_at", "2016-12-06 14:13:09.469869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'aef15976-bf73-48f2-94b2-ab602c784150' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "aef15976-bf73-48f2-94b2-ab602c784150"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.478077"], ["updated_at", "2016-12-06 14:13:09.478077"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'aef15976-bf73-48f2-94b2-ab602c784150', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.478077', "updated_at" = '2016-12-06 14:13:09.478077', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.483245', "updated_at" = '2016-12-06 14:13:09.483559', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'aef15976-bf73-48f2-94b2-ab602c784150' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.497180"], ["updated_at", "2016-12-06 14:13:09.497180"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.498559"], ["updated_at", "2016-12-06 14:13:09.498559"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.499623"], ["updated_at", "2016-12-06 14:13:09.499623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.505077"], ["updated_at", "2016-12-06 14:13:09.505077"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.507209"], ["updated_at", "2016-12-06 14:13:09.507209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.513603"], ["updated_at", "2016-12-06 14:13:09.513603"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.515274"], ["updated_at", "2016-12-06 14:13:09.515274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9d50bb67-fe01-40a5-bed7-50e14fae2341' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9d50bb67-fe01-40a5-bed7-50e14fae2341"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.523177"], ["updated_at", "2016-12-06 14:13:09.523177"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9d50bb67-fe01-40a5-bed7-50e14fae2341', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.523177', "updated_at" = '2016-12-06 14:13:09.523177', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.531395', "updated_at" = '2016-12-06 14:13:09.531815', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9d50bb67-fe01-40a5-bed7-50e14fae2341' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.543459"], ["updated_at", "2016-12-06 14:13:09.543459"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.544847"], ["updated_at", "2016-12-06 14:13:09.544847"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.546136"], ["updated_at", "2016-12-06 14:13:09.546136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.552413"], ["updated_at", "2016-12-06 14:13:09.552413"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.554947"], ["updated_at", "2016-12-06 14:13:09.554947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.562420"], ["updated_at", "2016-12-06 14:13:09.562420"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.564135"], ["updated_at", "2016-12-06 14:13:09.564135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '28a086a3-4145-4488-a397-3da21fe987ed' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "28a086a3-4145-4488-a397-3da21fe987ed"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.577482"], ["updated_at", "2016-12-06 14:13:09.577482"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '28a086a3-4145-4488-a397-3da21fe987ed', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.577482', "updated_at" = '2016-12-06 14:13:09.577482', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.582836', "updated_at" = '2016-12-06 14:13:09.583167', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '28a086a3-4145-4488-a397-3da21fe987ed' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.593248"], ["updated_at", "2016-12-06 14:13:09.593248"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.594826"], ["updated_at", "2016-12-06 14:13:09.594826"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.595907"], ["updated_at", "2016-12-06 14:13:09.595907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.601784"], ["updated_at", "2016-12-06 14:13:09.601784"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.603887"], ["updated_at", "2016-12-06 14:13:09.603887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.610633"], ["updated_at", "2016-12-06 14:13:09.610633"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.612372"], ["updated_at", "2016-12-06 14:13:09.612372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b28d71b7-3534-41e3-b123-594a031b7ee9' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b28d71b7-3534-41e3-b123-594a031b7ee9"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.619594"], ["updated_at", "2016-12-06 14:13:09.619594"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b28d71b7-3534-41e3-b123-594a031b7ee9', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.619594', "updated_at" = '2016-12-06 14:13:09.619594', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.623001', "updated_at" = '2016-12-06 14:13:09.623259', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b28d71b7-3534-41e3-b123-594a031b7ee9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.634966"], ["updated_at", "2016-12-06 14:13:09.634966"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.636596"], ["updated_at", "2016-12-06 14:13:09.636596"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.637956"], ["updated_at", "2016-12-06 14:13:09.637956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.644722"], ["updated_at", "2016-12-06 14:13:09.644722"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.646943"], ["updated_at", "2016-12-06 14:13:09.646943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.654128"], ["updated_at", "2016-12-06 14:13:09.654128"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.655930"], ["updated_at", "2016-12-06 14:13:09.655930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '730a9210-efda-4350-a2e8-b268c5636817' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "730a9210-efda-4350-a2e8-b268c5636817"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.663263"], ["updated_at", "2016-12-06 14:13:09.663263"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '730a9210-efda-4350-a2e8-b268c5636817', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.663263', "updated_at" = '2016-12-06 14:13:09.663263', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.666881', "updated_at" = '2016-12-06 14:13:09.667133', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '730a9210-efda-4350-a2e8-b268c5636817' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.678367"], ["updated_at", "2016-12-06 14:13:09.678367"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.680787"], ["updated_at", "2016-12-06 14:13:09.680787"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.682488"], ["updated_at", "2016-12-06 14:13:09.682488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.690229"], ["updated_at", "2016-12-06 14:13:09.690229"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.692051"], ["updated_at", "2016-12-06 14:13:09.692051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.698709"], ["updated_at", "2016-12-06 14:13:09.698709"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.700771"], ["updated_at", "2016-12-06 14:13:09.700771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '563b9e64-d857-4302-8f76-f6f510706aff' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "563b9e64-d857-4302-8f76-f6f510706aff"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.709859"], ["updated_at", "2016-12-06 14:13:09.709859"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '563b9e64-d857-4302-8f76-f6f510706aff', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.709859', "updated_at" = '2016-12-06 14:13:09.709859', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.713800', "updated_at" = '2016-12-06 14:13:09.714059', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '563b9e64-d857-4302-8f76-f6f510706aff' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.725178"], ["updated_at", "2016-12-06 14:13:09.725178"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.726905"], ["updated_at", "2016-12-06 14:13:09.726905"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.728119"], ["updated_at", "2016-12-06 14:13:09.728119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.735935"], ["updated_at", "2016-12-06 14:13:09.735935"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.738416"], ["updated_at", "2016-12-06 14:13:09.738416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.745959"], ["updated_at", "2016-12-06 14:13:09.745959"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.747793"], ["updated_at", "2016-12-06 14:13:09.747793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '46dd831d-72af-4c8d-a711-5642102a83f3' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "46dd831d-72af-4c8d-a711-5642102a83f3"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.755959"], ["updated_at", "2016-12-06 14:13:09.755959"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '46dd831d-72af-4c8d-a711-5642102a83f3', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.755959', "updated_at" = '2016-12-06 14:13:09.755959', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.759752', "updated_at" = '2016-12-06 14:13:09.759988', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '46dd831d-72af-4c8d-a711-5642102a83f3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.769156"], ["updated_at", "2016-12-06 14:13:09.769156"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.770624"], ["updated_at", "2016-12-06 14:13:09.770624"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.771748"], ["updated_at", "2016-12-06 14:13:09.771748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.779139"], ["updated_at", "2016-12-06 14:13:09.779139"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.782410"], ["updated_at", "2016-12-06 14:13:09.782410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:13:09.791406"], ["updated_at", "2016-12-06 14:13:09.791406"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:13:09.793509"], ["updated_at", "2016-12-06 14:13:09.793509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '337945ff-7d36-4a3b-b3d1-d0dc3623966e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "337945ff-7d36-4a3b-b3d1-d0dc3623966e"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.802604"], ["updated_at", "2016-12-06 14:13:09.802604"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '337945ff-7d36-4a3b-b3d1-d0dc3623966e', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.802604', "updated_at" = '2016-12-06 14:13:09.802604', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.809510', "updated_at" = '2016-12-06 14:13:09.809964', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '337945ff-7d36-4a3b-b3d1-d0dc3623966e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.820341"], ["updated_at", "2016-12-06 14:13:09.820341"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.821673"], ["updated_at", "2016-12-06 14:13:09.821673"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.822737"], ["updated_at", "2016-12-06 14:13:09.822737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.830211"], ["updated_at", "2016-12-06 14:13:09.830211"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.832528"], ["updated_at", "2016-12-06 14:13:09.832528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1fabe71b-71b7-46cb-898a-402cd2d622eb' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1fabe71b-71b7-46cb-898a-402cd2d622eb"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:13:09.840008"], ["updated_at", "2016-12-06 14:13:09.840008"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1fabe71b-71b7-46cb-898a-402cd2d622eb', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:13:09.840008', "updated_at" = '2016-12-06 14:13:09.840008', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:13:09.843790', "updated_at" = '2016-12-06 14:13:09.844011', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1fabe71b-71b7-46cb-898a-402cd2d622eb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:13:09.852676"], ["updated_at", "2016-12-06 14:13:09.852676"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.854173"], ["updated_at", "2016-12-06 14:13:09.854173"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:13:09.855267"], ["updated_at", "2016-12-06 14:13:09.855267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:13:09.861875"], ["updated_at", "2016-12-06 14:13:09.861875"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:13:09.864187"], ["updated_at", "2016-12-06 14:13:09.864187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.414903"], ["updated_at", "2016-12-06 14:14:11.414903"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.429433"], ["updated_at", "2016-12-06 14:14:11.429433"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.431153"], ["updated_at", "2016-12-06 14:14:11.431153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.566398"], ["updated_at", "2016-12-06 14:14:11.566398"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.574678"], ["updated_at", "2016-12-06 14:14:11.574678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.609573"], ["updated_at", "2016-12-06 14:14:11.609573"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.615947"], ["updated_at", "2016-12-06 14:14:11.615947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f50c0339-ed9c-45e5-ade9-3f474cf66ce9' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f50c0339-ed9c-45e5-ade9-3f474cf66ce9"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.657673"], ["updated_at", "2016-12-06 14:14:11.657673"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f50c0339-ed9c-45e5-ade9-3f474cf66ce9', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.657673', "updated_at" = '2016-12-06 14:14:11.657673', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.661761', "updated_at" = '2016-12-06 14:14:11.661994', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f50c0339-ed9c-45e5-ade9-3f474cf66ce9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.682628"], ["updated_at", "2016-12-06 14:14:11.682628"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.684024"], ["updated_at", "2016-12-06 14:14:11.684024"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.685163"], ["updated_at", "2016-12-06 14:14:11.685163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.691229"], ["updated_at", "2016-12-06 14:14:11.691229"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.693251"], ["updated_at", "2016-12-06 14:14:11.693251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.699545"], ["updated_at", "2016-12-06 14:14:11.699545"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.701214"], ["updated_at", "2016-12-06 14:14:11.701214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '634c962f-e3a4-49cd-a604-5fbffeb53b38' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "634c962f-e3a4-49cd-a604-5fbffeb53b38"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.712773"], ["updated_at", "2016-12-06 14:14:11.712773"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '634c962f-e3a4-49cd-a604-5fbffeb53b38', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.712773', "updated_at" = '2016-12-06 14:14:11.712773', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.718517', "updated_at" = '2016-12-06 14:14:11.718789', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '634c962f-e3a4-49cd-a604-5fbffeb53b38' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.729120"], ["updated_at", "2016-12-06 14:14:11.729120"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.730664"], ["updated_at", "2016-12-06 14:14:11.730664"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.731957"], ["updated_at", "2016-12-06 14:14:11.731957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.738689"], ["updated_at", "2016-12-06 14:14:11.738689"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.740691"], ["updated_at", "2016-12-06 14:14:11.740691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.746946"], ["updated_at", "2016-12-06 14:14:11.746946"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.748546"], ["updated_at", "2016-12-06 14:14:11.748546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f4225c30-5a80-4674-9a9d-b82b738c5e13' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.9ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f4225c30-5a80-4674-9a9d-b82b738c5e13"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.756490"], ["updated_at", "2016-12-06 14:14:11.756490"], ["lock_version", 0]] SQL (0.6ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f4225c30-5a80-4674-9a9d-b82b738c5e13', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.756490', "updated_at" = '2016-12-06 14:14:11.756490', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.764196', "updated_at" = '2016-12-06 14:14:11.764607', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f4225c30-5a80-4674-9a9d-b82b738c5e13' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.775329"], ["updated_at", "2016-12-06 14:14:11.775329"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.776715"], ["updated_at", "2016-12-06 14:14:11.776715"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.777786"], ["updated_at", "2016-12-06 14:14:11.777786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.783969"], ["updated_at", "2016-12-06 14:14:11.783969"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.786142"], ["updated_at", "2016-12-06 14:14:11.786142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.793221"], ["updated_at", "2016-12-06 14:14:11.793221"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.794886"], ["updated_at", "2016-12-06 14:14:11.794886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6e1a71e5-3c9f-4817-855d-1b8e2d9b6119' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6e1a71e5-3c9f-4817-855d-1b8e2d9b6119"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.802136"], ["updated_at", "2016-12-06 14:14:11.802136"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6e1a71e5-3c9f-4817-855d-1b8e2d9b6119', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.802136', "updated_at" = '2016-12-06 14:14:11.802136', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.806462', "updated_at" = '2016-12-06 14:14:11.806740', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6e1a71e5-3c9f-4817-855d-1b8e2d9b6119' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.821115"], ["updated_at", "2016-12-06 14:14:11.821115"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.822675"], ["updated_at", "2016-12-06 14:14:11.822675"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.823815"], ["updated_at", "2016-12-06 14:14:11.823815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.830704"], ["updated_at", "2016-12-06 14:14:11.830704"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.833204"], ["updated_at", "2016-12-06 14:14:11.833204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.841015"], ["updated_at", "2016-12-06 14:14:11.841015"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.843379"], ["updated_at", "2016-12-06 14:14:11.843379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.4ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1bae5e3b-cc26-48af-b3db-f4378ee34d6a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1bae5e3b-cc26-48af-b3db-f4378ee34d6a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.858104"], ["updated_at", "2016-12-06 14:14:11.858104"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1bae5e3b-cc26-48af-b3db-f4378ee34d6a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.858104', "updated_at" = '2016-12-06 14:14:11.858104', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.863995', "updated_at" = '2016-12-06 14:14:11.864272', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1bae5e3b-cc26-48af-b3db-f4378ee34d6a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.875155"], ["updated_at", "2016-12-06 14:14:11.875155"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.876633"], ["updated_at", "2016-12-06 14:14:11.876633"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.877721"], ["updated_at", "2016-12-06 14:14:11.877721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.884782"], ["updated_at", "2016-12-06 14:14:11.884782"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.887282"], ["updated_at", "2016-12-06 14:14:11.887282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.894759"], ["updated_at", "2016-12-06 14:14:11.894759"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.896668"], ["updated_at", "2016-12-06 14:14:11.896668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0e469e62-e400-4e2e-ae01-c88572b5c5f0' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0e469e62-e400-4e2e-ae01-c88572b5c5f0"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.904783"], ["updated_at", "2016-12-06 14:14:11.904783"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0e469e62-e400-4e2e-ae01-c88572b5c5f0', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.904783', "updated_at" = '2016-12-06 14:14:11.904783', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.911098', "updated_at" = '2016-12-06 14:14:11.911720', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0e469e62-e400-4e2e-ae01-c88572b5c5f0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.925330"], ["updated_at", "2016-12-06 14:14:11.925330"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.926726"], ["updated_at", "2016-12-06 14:14:11.926726"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.927797"], ["updated_at", "2016-12-06 14:14:11.927797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.934622"], ["updated_at", "2016-12-06 14:14:11.934622"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.937006"], ["updated_at", "2016-12-06 14:14:11.937006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.943885"], ["updated_at", "2016-12-06 14:14:11.943885"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.945654"], ["updated_at", "2016-12-06 14:14:11.945654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ed14c473-ece3-4ed0-b557-88cdc316ace4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ed14c473-ece3-4ed0-b557-88cdc316ace4"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:11.953354"], ["updated_at", "2016-12-06 14:14:11.953354"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ed14c473-ece3-4ed0-b557-88cdc316ace4', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:11.953354', "updated_at" = '2016-12-06 14:14:11.953354', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:11.957477', "updated_at" = '2016-12-06 14:14:11.957753', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ed14c473-ece3-4ed0-b557-88cdc316ace4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:11.971460"], ["updated_at", "2016-12-06 14:14:11.971460"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.972985"], ["updated_at", "2016-12-06 14:14:11.972985"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:11.974110"], ["updated_at", "2016-12-06 14:14:11.974110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:11.980835"], ["updated_at", "2016-12-06 14:14:11.980835"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:11.983063"], ["updated_at", "2016-12-06 14:14:11.983063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:11.990232"], ["updated_at", "2016-12-06 14:14:11.990232"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:11.992195"], ["updated_at", "2016-12-06 14:14:11.992195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ce563253-3f15-43f4-b775-2d01876b1ce8' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ce563253-3f15-43f4-b775-2d01876b1ce8"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:12.000131"], ["updated_at", "2016-12-06 14:14:12.000131"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ce563253-3f15-43f4-b775-2d01876b1ce8', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:12.000131', "updated_at" = '2016-12-06 14:14:12.000131', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:12.007278', "updated_at" = '2016-12-06 14:14:12.007591', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ce563253-3f15-43f4-b775-2d01876b1ce8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:12.018815"], ["updated_at", "2016-12-06 14:14:12.018815"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.020374"], ["updated_at", "2016-12-06 14:14:12.020374"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.021522"], ["updated_at", "2016-12-06 14:14:12.021522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:12.028248"], ["updated_at", "2016-12-06 14:14:12.028248"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:12.030525"], ["updated_at", "2016-12-06 14:14:12.030525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:14:12.038064"], ["updated_at", "2016-12-06 14:14:12.038064"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:14:12.039761"], ["updated_at", "2016-12-06 14:14:12.039761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '23186260-d46b-41ac-8ff9-f7ba23d67ac5' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "23186260-d46b-41ac-8ff9-f7ba23d67ac5"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:12.053026"], ["updated_at", "2016-12-06 14:14:12.053026"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '23186260-d46b-41ac-8ff9-f7ba23d67ac5', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:12.053026', "updated_at" = '2016-12-06 14:14:12.053026', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:12.057477', "updated_at" = '2016-12-06 14:14:12.057733', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '23186260-d46b-41ac-8ff9-f7ba23d67ac5' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:12.068331"], ["updated_at", "2016-12-06 14:14:12.068331"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.069770"], ["updated_at", "2016-12-06 14:14:12.069770"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.070960"], ["updated_at", "2016-12-06 14:14:12.070960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:12.077696"], ["updated_at", "2016-12-06 14:14:12.077696"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:12.079875"], ["updated_at", "2016-12-06 14:14:12.079875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3a47cad7-ff91-4be8-a8d3-2b1ac595174e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3a47cad7-ff91-4be8-a8d3-2b1ac595174e"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:14:12.087146"], ["updated_at", "2016-12-06 14:14:12.087146"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3a47cad7-ff91-4be8-a8d3-2b1ac595174e', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:14:12.087146', "updated_at" = '2016-12-06 14:14:12.087146', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:14:12.091229', "updated_at" = '2016-12-06 14:14:12.091470', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3a47cad7-ff91-4be8-a8d3-2b1ac595174e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:14:12.099654"], ["updated_at", "2016-12-06 14:14:12.099654"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.101009"], ["updated_at", "2016-12-06 14:14:12.101009"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:14:12.102317"], ["updated_at", "2016-12-06 14:14:12.102317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:14:12.110163"], ["updated_at", "2016-12-06 14:14:12.110163"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:14:12.112256"], ["updated_at", "2016-12-06 14:14:12.112256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:27.727188"], ["updated_at", "2016-12-06 14:20:27.727188"]] SQL (0.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:27.744160"], ["updated_at", "2016-12-06 14:20:27.744160"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:27.746545"], ["updated_at", "2016-12-06 14:20:27.746545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.7ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:27.872334"], ["updated_at", "2016-12-06 14:20:27.872334"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:27.881831"], ["updated_at", "2016-12-06 14:20:27.881831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.8ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:27.921149"], ["updated_at", "2016-12-06 14:20:27.921149"]] SQL (0.9ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:27.929639"], ["updated_at", "2016-12-06 14:20:27.929639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.6ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cf64eb6c-12ee-469b-9960-afe678f84701' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (3.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cf64eb6c-12ee-469b-9960-afe678f84701"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:27.975508"], ["updated_at", "2016-12-06 14:20:27.975508"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cf64eb6c-12ee-469b-9960-afe678f84701', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:27.975508', "updated_at" = '2016-12-06 14:20:27.975508', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:27.985771', "updated_at" = '2016-12-06 14:20:27.986175', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cf64eb6c-12ee-469b-9960-afe678f84701' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.014876"], ["updated_at", "2016-12-06 14:20:28.014876"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.016292"], ["updated_at", "2016-12-06 14:20:28.016292"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.017356"], ["updated_at", "2016-12-06 14:20:28.017356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.024096"], ["updated_at", "2016-12-06 14:20:28.024096"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.028461"], ["updated_at", "2016-12-06 14:20:28.028461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.037715"], ["updated_at", "2016-12-06 14:20:28.037715"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.039582"], ["updated_at", "2016-12-06 14:20:28.039582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e2908839-c884-4a33-a330-1fc412a307fb' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e2908839-c884-4a33-a330-1fc412a307fb"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.049748"], ["updated_at", "2016-12-06 14:20:28.049748"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e2908839-c884-4a33-a330-1fc412a307fb', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.049748', "updated_at" = '2016-12-06 14:20:28.049748', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.054489', "updated_at" = '2016-12-06 14:20:28.054735', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e2908839-c884-4a33-a330-1fc412a307fb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.067568"], ["updated_at", "2016-12-06 14:20:28.067568"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.069738"], ["updated_at", "2016-12-06 14:20:28.069738"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.071243"], ["updated_at", "2016-12-06 14:20:28.071243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.078018"], ["updated_at", "2016-12-06 14:20:28.078018"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.079899"], ["updated_at", "2016-12-06 14:20:28.079899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.086323"], ["updated_at", "2016-12-06 14:20:28.086323"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.087967"], ["updated_at", "2016-12-06 14:20:28.087967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7600d831-4ce8-4942-a647-8cb307f1394d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7600d831-4ce8-4942-a647-8cb307f1394d"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.099403"], ["updated_at", "2016-12-06 14:20:28.099403"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7600d831-4ce8-4942-a647-8cb307f1394d', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.099403', "updated_at" = '2016-12-06 14:20:28.099403', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.103764', "updated_at" = '2016-12-06 14:20:28.104087', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7600d831-4ce8-4942-a647-8cb307f1394d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.114128"], ["updated_at", "2016-12-06 14:20:28.114128"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.115662"], ["updated_at", "2016-12-06 14:20:28.115662"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.116927"], ["updated_at", "2016-12-06 14:20:28.116927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.123808"], ["updated_at", "2016-12-06 14:20:28.123808"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.125999"], ["updated_at", "2016-12-06 14:20:28.125999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.132518"], ["updated_at", "2016-12-06 14:20:28.132518"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.134279"], ["updated_at", "2016-12-06 14:20:28.134279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1e5d630c-9f73-41da-aed8-1bf4c1201147' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1e5d630c-9f73-41da-aed8-1bf4c1201147"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.145089"], ["updated_at", "2016-12-06 14:20:28.145089"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1e5d630c-9f73-41da-aed8-1bf4c1201147', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.145089', "updated_at" = '2016-12-06 14:20:28.145089', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.151784', "updated_at" = '2016-12-06 14:20:28.152102', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1e5d630c-9f73-41da-aed8-1bf4c1201147' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.162294"], ["updated_at", "2016-12-06 14:20:28.162294"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.163743"], ["updated_at", "2016-12-06 14:20:28.163743"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.164822"], ["updated_at", "2016-12-06 14:20:28.164822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.173837"], ["updated_at", "2016-12-06 14:20:28.173837"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.177159"], ["updated_at", "2016-12-06 14:20:28.177159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.185068"], ["updated_at", "2016-12-06 14:20:28.185068"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.186803"], ["updated_at", "2016-12-06 14:20:28.186803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ac7464c6-1e1e-4269-a19e-f17449eecab1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ac7464c6-1e1e-4269-a19e-f17449eecab1"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.199030"], ["updated_at", "2016-12-06 14:20:28.199030"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ac7464c6-1e1e-4269-a19e-f17449eecab1', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.199030', "updated_at" = '2016-12-06 14:20:28.199030', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.204356', "updated_at" = '2016-12-06 14:20:28.204653', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ac7464c6-1e1e-4269-a19e-f17449eecab1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.216992"], ["updated_at", "2016-12-06 14:20:28.216992"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.219376"], ["updated_at", "2016-12-06 14:20:28.219376"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.221035"], ["updated_at", "2016-12-06 14:20:28.221035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.227661"], ["updated_at", "2016-12-06 14:20:28.227661"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.229541"], ["updated_at", "2016-12-06 14:20:28.229541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.236477"], ["updated_at", "2016-12-06 14:20:28.236477"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.238193"], ["updated_at", "2016-12-06 14:20:28.238193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4ff7406c-2f9b-4dfd-8af6-a3511e39f3ae' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4ff7406c-2f9b-4dfd-8af6-a3511e39f3ae"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.248176"], ["updated_at", "2016-12-06 14:20:28.248176"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4ff7406c-2f9b-4dfd-8af6-a3511e39f3ae', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.248176', "updated_at" = '2016-12-06 14:20:28.248176', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.252412', "updated_at" = '2016-12-06 14:20:28.252715', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4ff7406c-2f9b-4dfd-8af6-a3511e39f3ae' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.265465"], ["updated_at", "2016-12-06 14:20:28.265465"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.267877"], ["updated_at", "2016-12-06 14:20:28.267877"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.269553"], ["updated_at", "2016-12-06 14:20:28.269553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.276884"], ["updated_at", "2016-12-06 14:20:28.276884"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.278730"], ["updated_at", "2016-12-06 14:20:28.278730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.285395"], ["updated_at", "2016-12-06 14:20:28.285395"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.287138"], ["updated_at", "2016-12-06 14:20:28.287138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'd1825eda-064b-49d0-99ef-9490ff06c0da' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "d1825eda-064b-49d0-99ef-9490ff06c0da"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.297675"], ["updated_at", "2016-12-06 14:20:28.297675"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'd1825eda-064b-49d0-99ef-9490ff06c0da', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.297675', "updated_at" = '2016-12-06 14:20:28.297675', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.302010', "updated_at" = '2016-12-06 14:20:28.302411', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'd1825eda-064b-49d0-99ef-9490ff06c0da' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.313734"], ["updated_at", "2016-12-06 14:20:28.313734"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.315268"], ["updated_at", "2016-12-06 14:20:28.315268"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.316334"], ["updated_at", "2016-12-06 14:20:28.316334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.322130"], ["updated_at", "2016-12-06 14:20:28.322130"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.324441"], ["updated_at", "2016-12-06 14:20:28.324441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.331305"], ["updated_at", "2016-12-06 14:20:28.331305"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.333014"], ["updated_at", "2016-12-06 14:20:28.333014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f129161b-44ae-4fc3-8766-cf2f37cdd573' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f129161b-44ae-4fc3-8766-cf2f37cdd573"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.340614"], ["updated_at", "2016-12-06 14:20:28.340614"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f129161b-44ae-4fc3-8766-cf2f37cdd573', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.340614', "updated_at" = '2016-12-06 14:20:28.340614', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.3ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.344998', "updated_at" = '2016-12-06 14:20:28.345302', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f129161b-44ae-4fc3-8766-cf2f37cdd573' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.358974"], ["updated_at", "2016-12-06 14:20:28.358974"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.360378"], ["updated_at", "2016-12-06 14:20:28.360378"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.361441"], ["updated_at", "2016-12-06 14:20:28.361441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.5ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.367148"], ["updated_at", "2016-12-06 14:20:28.367148"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.372078"], ["updated_at", "2016-12-06 14:20:28.372078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 14:20:28.381889"], ["updated_at", "2016-12-06 14:20:28.381889"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 14:20:28.383774"], ["updated_at", "2016-12-06 14:20:28.383774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2a36d529-db09-4245-907c-1c7de51e4304' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2a36d529-db09-4245-907c-1c7de51e4304"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.391407"], ["updated_at", "2016-12-06 14:20:28.391407"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2a36d529-db09-4245-907c-1c7de51e4304', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.391407', "updated_at" = '2016-12-06 14:20:28.391407', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.395406', "updated_at" = '2016-12-06 14:20:28.396438', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2a36d529-db09-4245-907c-1c7de51e4304' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.407595"], ["updated_at", "2016-12-06 14:20:28.407595"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.409025"], ["updated_at", "2016-12-06 14:20:28.409025"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.410086"], ["updated_at", "2016-12-06 14:20:28.410086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.416982"], ["updated_at", "2016-12-06 14:20:28.416982"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.419126"], ["updated_at", "2016-12-06 14:20:28.419126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8df19ab8-dd04-4e71-98b1-646e7f9bf7df' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8df19ab8-dd04-4e71-98b1-646e7f9bf7df"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 14:20:28.426218"], ["updated_at", "2016-12-06 14:20:28.426218"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8df19ab8-dd04-4e71-98b1-646e7f9bf7df', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 14:20:28.426218', "updated_at" = '2016-12-06 14:20:28.426218', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 14:20:28.429736', "updated_at" = '2016-12-06 14:20:28.429943', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8df19ab8-dd04-4e71-98b1-646e7f9bf7df' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 14:20:28.440180"], ["updated_at", "2016-12-06 14:20:28.440180"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.441972"], ["updated_at", "2016-12-06 14:20:28.441972"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 14:20:28.443192"], ["updated_at", "2016-12-06 14:20:28.443192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 14:20:28.450832"], ["updated_at", "2016-12-06 14:20:28.450832"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 14:20:28.453185"], ["updated_at", "2016-12-06 14:20:28.453185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.354585"], ["updated_at", "2016-12-06 15:29:56.354585"]] SQL (0.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.368003"], ["updated_at", "2016-12-06 15:29:56.368003"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.370658"], ["updated_at", "2016-12-06 15:29:56.370658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.504936"], ["updated_at", "2016-12-06 15:29:56.504936"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.514454"], ["updated_at", "2016-12-06 15:29:56.514454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.7ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.556669"], ["updated_at", "2016-12-06 15:29:56.556669"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.572349"], ["updated_at", "2016-12-06 15:29:56.572349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'dcde469c-fcbb-4223-bdd6-5b73ce40a761' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "dcde469c-fcbb-4223-bdd6-5b73ce40a761"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.616856"], ["updated_at", "2016-12-06 15:29:56.616856"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'dcde469c-fcbb-4223-bdd6-5b73ce40a761', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.616856', "updated_at" = '2016-12-06 15:29:56.616856', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.621068', "updated_at" = '2016-12-06 15:29:56.621338', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.2ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'dcde469c-fcbb-4223-bdd6-5b73ce40a761' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.649056"], ["updated_at", "2016-12-06 15:29:56.649056"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.650485"], ["updated_at", "2016-12-06 15:29:56.650485"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.651603"], ["updated_at", "2016-12-06 15:29:56.651603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.657500"], ["updated_at", "2016-12-06 15:29:56.657500"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.659609"], ["updated_at", "2016-12-06 15:29:56.659609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.666086"], ["updated_at", "2016-12-06 15:29:56.666086"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.667755"], ["updated_at", "2016-12-06 15:29:56.667755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '25e6f730-f7aa-4ca0-af5e-d7a643d5cea1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "25e6f730-f7aa-4ca0-af5e-d7a643d5cea1"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.675375"], ["updated_at", "2016-12-06 15:29:56.675375"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '25e6f730-f7aa-4ca0-af5e-d7a643d5cea1', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.675375', "updated_at" = '2016-12-06 15:29:56.675375', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.680079', "updated_at" = '2016-12-06 15:29:56.680908', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '25e6f730-f7aa-4ca0-af5e-d7a643d5cea1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.695010"], ["updated_at", "2016-12-06 15:29:56.695010"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.697247"], ["updated_at", "2016-12-06 15:29:56.697247"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.698636"], ["updated_at", "2016-12-06 15:29:56.698636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.705438"], ["updated_at", "2016-12-06 15:29:56.705438"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.707959"], ["updated_at", "2016-12-06 15:29:56.707959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.715041"], ["updated_at", "2016-12-06 15:29:56.715041"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.716989"], ["updated_at", "2016-12-06 15:29:56.716989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '71df9941-353c-4a6c-b3da-ee2a3d2d217e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "71df9941-353c-4a6c-b3da-ee2a3d2d217e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.729572"], ["updated_at", "2016-12-06 15:29:56.729572"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '71df9941-353c-4a6c-b3da-ee2a3d2d217e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.729572', "updated_at" = '2016-12-06 15:29:56.729572', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.734613', "updated_at" = '2016-12-06 15:29:56.734881', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '71df9941-353c-4a6c-b3da-ee2a3d2d217e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.744063"], ["updated_at", "2016-12-06 15:29:56.744063"]] SQL (0.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.745670"], ["updated_at", "2016-12-06 15:29:56.745670"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.747937"], ["updated_at", "2016-12-06 15:29:56.747937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.755135"], ["updated_at", "2016-12-06 15:29:56.755135"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.757957"], ["updated_at", "2016-12-06 15:29:56.757957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.764763"], ["updated_at", "2016-12-06 15:29:56.764763"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.766772"], ["updated_at", "2016-12-06 15:29:56.766772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3f910130-eb83-46b2-81d4-6f5e2178c090' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3f910130-eb83-46b2-81d4-6f5e2178c090"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.774395"], ["updated_at", "2016-12-06 15:29:56.774395"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3f910130-eb83-46b2-81d4-6f5e2178c090', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.774395', "updated_at" = '2016-12-06 15:29:56.774395', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.778056', "updated_at" = '2016-12-06 15:29:56.778297', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3f910130-eb83-46b2-81d4-6f5e2178c090' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.787552"], ["updated_at", "2016-12-06 15:29:56.787552"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.788886"], ["updated_at", "2016-12-06 15:29:56.788886"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.789942"], ["updated_at", "2016-12-06 15:29:56.789942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.800776"], ["updated_at", "2016-12-06 15:29:56.800776"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.803156"], ["updated_at", "2016-12-06 15:29:56.803156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.811769"], ["updated_at", "2016-12-06 15:29:56.811769"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.813689"], ["updated_at", "2016-12-06 15:29:56.813689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5e0eaed1-9de4-4c6c-8f09-b91daf7e79c7' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5e0eaed1-9de4-4c6c-8f09-b91daf7e79c7"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.821058"], ["updated_at", "2016-12-06 15:29:56.821058"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5e0eaed1-9de4-4c6c-8f09-b91daf7e79c7', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.821058', "updated_at" = '2016-12-06 15:29:56.821058', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.824478', "updated_at" = '2016-12-06 15:29:56.824716', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5e0eaed1-9de4-4c6c-8f09-b91daf7e79c7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.833997"], ["updated_at", "2016-12-06 15:29:56.833997"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.835507"], ["updated_at", "2016-12-06 15:29:56.835507"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.836604"], ["updated_at", "2016-12-06 15:29:56.836604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.843684"], ["updated_at", "2016-12-06 15:29:56.843684"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.846123"], ["updated_at", "2016-12-06 15:29:56.846123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.855061"], ["updated_at", "2016-12-06 15:29:56.855061"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.857473"], ["updated_at", "2016-12-06 15:29:56.857473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ed89546a-a2a4-4284-aac0-73e51527ee92' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ed89546a-a2a4-4284-aac0-73e51527ee92"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.865893"], ["updated_at", "2016-12-06 15:29:56.865893"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ed89546a-a2a4-4284-aac0-73e51527ee92', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.865893', "updated_at" = '2016-12-06 15:29:56.865893', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.869310', "updated_at" = '2016-12-06 15:29:56.869543', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ed89546a-a2a4-4284-aac0-73e51527ee92' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.881524"], ["updated_at", "2016-12-06 15:29:56.881524"]] SQL (0.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.884277"], ["updated_at", "2016-12-06 15:29:56.884277"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.886891"], ["updated_at", "2016-12-06 15:29:56.886891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.8ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.896907"], ["updated_at", "2016-12-06 15:29:56.896907"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.900110"], ["updated_at", "2016-12-06 15:29:56.900110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.908665"], ["updated_at", "2016-12-06 15:29:56.908665"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.910985"], ["updated_at", "2016-12-06 15:29:56.910985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0b8f5b9e-791d-4f36-8768-88e6529c76b4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0b8f5b9e-791d-4f36-8768-88e6529c76b4"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.919171"], ["updated_at", "2016-12-06 15:29:56.919171"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0b8f5b9e-791d-4f36-8768-88e6529c76b4', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.919171', "updated_at" = '2016-12-06 15:29:56.919171', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.922875', "updated_at" = '2016-12-06 15:29:56.923115', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0b8f5b9e-791d-4f36-8768-88e6529c76b4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.937602"], ["updated_at", "2016-12-06 15:29:56.937602"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.939497"], ["updated_at", "2016-12-06 15:29:56.939497"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.940693"], ["updated_at", "2016-12-06 15:29:56.940693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:56.948669"], ["updated_at", "2016-12-06 15:29:56.948669"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:56.950983"], ["updated_at", "2016-12-06 15:29:56.950983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:56.958288"], ["updated_at", "2016-12-06 15:29:56.958288"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:56.961152"], ["updated_at", "2016-12-06 15:29:56.961152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c2c81850-2ac2-4bd6-91e6-08870fb2ddca' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c2c81850-2ac2-4bd6-91e6-08870fb2ddca"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:56.973625"], ["updated_at", "2016-12-06 15:29:56.973625"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c2c81850-2ac2-4bd6-91e6-08870fb2ddca', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:56.973625', "updated_at" = '2016-12-06 15:29:56.973625', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:56.978746', "updated_at" = '2016-12-06 15:29:56.979016', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c2c81850-2ac2-4bd6-91e6-08870fb2ddca' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:56.990068"], ["updated_at", "2016-12-06 15:29:56.990068"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.991746"], ["updated_at", "2016-12-06 15:29:56.991746"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:56.993029"], ["updated_at", "2016-12-06 15:29:56.993029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:57.001026"], ["updated_at", "2016-12-06 15:29:57.001026"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:57.003252"], ["updated_at", "2016-12-06 15:29:57.003252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:29:57.011540"], ["updated_at", "2016-12-06 15:29:57.011540"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:29:57.013616"], ["updated_at", "2016-12-06 15:29:57.013616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8aa71a6e-f5ae-4a00-8fed-f356281020a9' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8aa71a6e-f5ae-4a00-8fed-f356281020a9"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:57.021367"], ["updated_at", "2016-12-06 15:29:57.021367"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8aa71a6e-f5ae-4a00-8fed-f356281020a9', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:57.021367', "updated_at" = '2016-12-06 15:29:57.021367', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:57.024947', "updated_at" = '2016-12-06 15:29:57.025186', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8aa71a6e-f5ae-4a00-8fed-f356281020a9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:57.036698"], ["updated_at", "2016-12-06 15:29:57.036698"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:57.039127"], ["updated_at", "2016-12-06 15:29:57.039127"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:57.040519"], ["updated_at", "2016-12-06 15:29:57.040519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:57.048674"], ["updated_at", "2016-12-06 15:29:57.048674"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:57.051060"], ["updated_at", "2016-12-06 15:29:57.051060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4dcd627d-b19a-40ed-aa93-585234ab764b' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4dcd627d-b19a-40ed-aa93-585234ab764b"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:29:57.059242"], ["updated_at", "2016-12-06 15:29:57.059242"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4dcd627d-b19a-40ed-aa93-585234ab764b', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:29:57.059242', "updated_at" = '2016-12-06 15:29:57.059242', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:29:57.063426', "updated_at" = '2016-12-06 15:29:57.063685', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4dcd627d-b19a-40ed-aa93-585234ab764b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:29:57.072650"], ["updated_at", "2016-12-06 15:29:57.072650"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:29:57.074088"], ["updated_at", "2016-12-06 15:29:57.074088"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:29:57.075186"], ["updated_at", "2016-12-06 15:29:57.075186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:29:57.081919"], ["updated_at", "2016-12-06 15:29:57.081919"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:29:57.086326"], ["updated_at", "2016-12-06 15:29:57.086326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.334463"], ["updated_at", "2016-12-06 15:39:55.334463"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.348399"], ["updated_at", "2016-12-06 15:39:55.348399"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.350128"], ["updated_at", "2016-12-06 15:39:55.350128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.485731"], ["updated_at", "2016-12-06 15:39:55.485731"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.495098"], ["updated_at", "2016-12-06 15:39:55.495098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.5ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.9ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.536100"], ["updated_at", "2016-12-06 15:39:55.536100"]] SQL (1.0ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.543543"], ["updated_at", "2016-12-06 15:39:55.543543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '398ad28b-bf4d-42ed-bc37-4c73fe649ca2' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.8ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "398ad28b-bf4d-42ed-bc37-4c73fe649ca2"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.585228"], ["updated_at", "2016-12-06 15:39:55.585228"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '398ad28b-bf4d-42ed-bc37-4c73fe649ca2', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.585228', "updated_at" = '2016-12-06 15:39:55.585228', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.592574', "updated_at" = '2016-12-06 15:39:55.592838', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '398ad28b-bf4d-42ed-bc37-4c73fe649ca2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.619388"], ["updated_at", "2016-12-06 15:39:55.619388"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.620778"], ["updated_at", "2016-12-06 15:39:55.620778"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.621947"], ["updated_at", "2016-12-06 15:39:55.621947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.629638"], ["updated_at", "2016-12-06 15:39:55.629638"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.632549"], ["updated_at", "2016-12-06 15:39:55.632549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.641124"], ["updated_at", "2016-12-06 15:39:55.641124"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.642979"], ["updated_at", "2016-12-06 15:39:55.642979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '326c2e94-bb10-4fea-8960-0a5800b33ee2' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "326c2e94-bb10-4fea-8960-0a5800b33ee2"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.650440"], ["updated_at", "2016-12-06 15:39:55.650440"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '326c2e94-bb10-4fea-8960-0a5800b33ee2', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.650440', "updated_at" = '2016-12-06 15:39:55.650440', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.654395', "updated_at" = '2016-12-06 15:39:55.654694', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '326c2e94-bb10-4fea-8960-0a5800b33ee2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.665711"], ["updated_at", "2016-12-06 15:39:55.665711"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.667097"], ["updated_at", "2016-12-06 15:39:55.667097"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.668187"], ["updated_at", "2016-12-06 15:39:55.668187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.674377"], ["updated_at", "2016-12-06 15:39:55.674377"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.678935"], ["updated_at", "2016-12-06 15:39:55.678935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.690221"], ["updated_at", "2016-12-06 15:39:55.690221"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.692271"], ["updated_at", "2016-12-06 15:39:55.692271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6f18ba2f-0bd8-4b72-80ae-230fa963c1b5' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6f18ba2f-0bd8-4b72-80ae-230fa963c1b5"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.699958"], ["updated_at", "2016-12-06 15:39:55.699958"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6f18ba2f-0bd8-4b72-80ae-230fa963c1b5', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.699958', "updated_at" = '2016-12-06 15:39:55.699958', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.703513', "updated_at" = '2016-12-06 15:39:55.703762', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6f18ba2f-0bd8-4b72-80ae-230fa963c1b5' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.715783"], ["updated_at", "2016-12-06 15:39:55.715783"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.717824"], ["updated_at", "2016-12-06 15:39:55.717824"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.719347"], ["updated_at", "2016-12-06 15:39:55.719347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.725948"], ["updated_at", "2016-12-06 15:39:55.725948"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.727935"], ["updated_at", "2016-12-06 15:39:55.727935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.735346"], ["updated_at", "2016-12-06 15:39:55.735346"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.737412"], ["updated_at", "2016-12-06 15:39:55.737412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9590d1b3-75af-4c74-bd45-847e3ed67e1f' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9590d1b3-75af-4c74-bd45-847e3ed67e1f"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.747288"], ["updated_at", "2016-12-06 15:39:55.747288"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9590d1b3-75af-4c74-bd45-847e3ed67e1f', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.747288', "updated_at" = '2016-12-06 15:39:55.747288', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.750923', "updated_at" = '2016-12-06 15:39:55.751152', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9590d1b3-75af-4c74-bd45-847e3ed67e1f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.761356"], ["updated_at", "2016-12-06 15:39:55.761356"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.762778"], ["updated_at", "2016-12-06 15:39:55.762778"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.763762"], ["updated_at", "2016-12-06 15:39:55.763762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.770193"], ["updated_at", "2016-12-06 15:39:55.770193"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.772318"], ["updated_at", "2016-12-06 15:39:55.772318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.779468"], ["updated_at", "2016-12-06 15:39:55.779468"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.781439"], ["updated_at", "2016-12-06 15:39:55.781439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3f1e52c8-49a6-4cf1-a947-3c2889c18ce4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3f1e52c8-49a6-4cf1-a947-3c2889c18ce4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.791057"], ["updated_at", "2016-12-06 15:39:55.791057"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3f1e52c8-49a6-4cf1-a947-3c2889c18ce4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.791057', "updated_at" = '2016-12-06 15:39:55.791057', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.794511', "updated_at" = '2016-12-06 15:39:55.794737', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3f1e52c8-49a6-4cf1-a947-3c2889c18ce4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.803288"], ["updated_at", "2016-12-06 15:39:55.803288"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.804555"], ["updated_at", "2016-12-06 15:39:55.804555"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.805711"], ["updated_at", "2016-12-06 15:39:55.805711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.813196"], ["updated_at", "2016-12-06 15:39:55.813196"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.816799"], ["updated_at", "2016-12-06 15:39:55.816799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.824467"], ["updated_at", "2016-12-06 15:39:55.824467"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.826141"], ["updated_at", "2016-12-06 15:39:55.826141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9545cec8-ff39-4737-aaac-7542b8726586' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9545cec8-ff39-4737-aaac-7542b8726586"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.834269"], ["updated_at", "2016-12-06 15:39:55.834269"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9545cec8-ff39-4737-aaac-7542b8726586', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.834269', "updated_at" = '2016-12-06 15:39:55.834269', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.839486', "updated_at" = '2016-12-06 15:39:55.839786', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9545cec8-ff39-4737-aaac-7542b8726586' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.851880"], ["updated_at", "2016-12-06 15:39:55.851880"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.854255"], ["updated_at", "2016-12-06 15:39:55.854255"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.855958"], ["updated_at", "2016-12-06 15:39:55.855958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.863872"], ["updated_at", "2016-12-06 15:39:55.863872"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.866037"], ["updated_at", "2016-12-06 15:39:55.866037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.872644"], ["updated_at", "2016-12-06 15:39:55.872644"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.874329"], ["updated_at", "2016-12-06 15:39:55.874329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e414f31c-22e1-47f1-ace2-421a1161eaad' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e414f31c-22e1-47f1-ace2-421a1161eaad"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.882084"], ["updated_at", "2016-12-06 15:39:55.882084"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e414f31c-22e1-47f1-ace2-421a1161eaad', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.882084', "updated_at" = '2016-12-06 15:39:55.882084', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.886317', "updated_at" = '2016-12-06 15:39:55.886596', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e414f31c-22e1-47f1-ace2-421a1161eaad' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.903213"], ["updated_at", "2016-12-06 15:39:55.903213"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.905657"], ["updated_at", "2016-12-06 15:39:55.905657"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.907281"], ["updated_at", "2016-12-06 15:39:55.907281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.915983"], ["updated_at", "2016-12-06 15:39:55.915983"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.918056"], ["updated_at", "2016-12-06 15:39:55.918056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.924795"], ["updated_at", "2016-12-06 15:39:55.924795"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.926605"], ["updated_at", "2016-12-06 15:39:55.926605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c35e3dc5-4edb-4a62-a621-d0132c0b719d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (1.0ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c35e3dc5-4edb-4a62-a621-d0132c0b719d"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.935116"], ["updated_at", "2016-12-06 15:39:55.935116"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c35e3dc5-4edb-4a62-a621-d0132c0b719d', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.935116', "updated_at" = '2016-12-06 15:39:55.935116', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.941761', "updated_at" = '2016-12-06 15:39:55.942159', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c35e3dc5-4edb-4a62-a621-d0132c0b719d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:55.953837"], ["updated_at", "2016-12-06 15:39:55.953837"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.955339"], ["updated_at", "2016-12-06 15:39:55.955339"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:55.956417"], ["updated_at", "2016-12-06 15:39:55.956417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:55.962355"], ["updated_at", "2016-12-06 15:39:55.962355"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:55.967032"], ["updated_at", "2016-12-06 15:39:55.967032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:39:55.976885"], ["updated_at", "2016-12-06 15:39:55.976885"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:39:55.978694"], ["updated_at", "2016-12-06 15:39:55.978694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a7dcb8d1-6601-4b0a-8b33-f68d4f490e4e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.6ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a7dcb8d1-6601-4b0a-8b33-f68d4f490e4e"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:55.988635"], ["updated_at", "2016-12-06 15:39:55.988635"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a7dcb8d1-6601-4b0a-8b33-f68d4f490e4e', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:55.988635', "updated_at" = '2016-12-06 15:39:55.988635', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:55.994685', "updated_at" = '2016-12-06 15:39:55.995147', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a7dcb8d1-6601-4b0a-8b33-f68d4f490e4e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:56.007659"], ["updated_at", "2016-12-06 15:39:56.007659"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:56.009115"], ["updated_at", "2016-12-06 15:39:56.009115"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:56.010237"], ["updated_at", "2016-12-06 15:39:56.010237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:56.016517"], ["updated_at", "2016-12-06 15:39:56.016517"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:56.018998"], ["updated_at", "2016-12-06 15:39:56.018998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3dec7783-d18c-4bc0-b4fe-73d0e76bce2a' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3dec7783-d18c-4bc0-b4fe-73d0e76bce2a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:39:56.025738"], ["updated_at", "2016-12-06 15:39:56.025738"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3dec7783-d18c-4bc0-b4fe-73d0e76bce2a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:39:56.025738', "updated_at" = '2016-12-06 15:39:56.025738', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:39:56.029385', "updated_at" = '2016-12-06 15:39:56.029592', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3dec7783-d18c-4bc0-b4fe-73d0e76bce2a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:39:56.039717"], ["updated_at", "2016-12-06 15:39:56.039717"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:39:56.041328"], ["updated_at", "2016-12-06 15:39:56.041328"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:39:56.042589"], ["updated_at", "2016-12-06 15:39:56.042589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:39:56.049456"], ["updated_at", "2016-12-06 15:39:56.049456"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:39:56.051494"], ["updated_at", "2016-12-06 15:39:56.051494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:09.959784"], ["updated_at", "2016-12-06 15:42:09.959784"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:09.973678"], ["updated_at", "2016-12-06 15:42:09.973678"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:09.975290"], ["updated_at", "2016-12-06 15:42:09.975290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.099851"], ["updated_at", "2016-12-06 15:42:10.099851"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.107792"], ["updated_at", "2016-12-06 15:42:10.107792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.147303"], ["updated_at", "2016-12-06 15:42:10.147303"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.155636"], ["updated_at", "2016-12-06 15:42:10.155636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f1052495-012e-4ebf-9ae8-6df044187ea4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f1052495-012e-4ebf-9ae8-6df044187ea4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.198001"], ["updated_at", "2016-12-06 15:42:10.198001"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f1052495-012e-4ebf-9ae8-6df044187ea4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.198001', "updated_at" = '2016-12-06 15:42:10.198001', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.202147', "updated_at" = '2016-12-06 15:42:10.202427', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f1052495-012e-4ebf-9ae8-6df044187ea4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.229684"], ["updated_at", "2016-12-06 15:42:10.229684"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.231045"], ["updated_at", "2016-12-06 15:42:10.231045"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.232126"], ["updated_at", "2016-12-06 15:42:10.232126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.237997"], ["updated_at", "2016-12-06 15:42:10.237997"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.242761"], ["updated_at", "2016-12-06 15:42:10.242761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.253975"], ["updated_at", "2016-12-06 15:42:10.253975"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.255980"], ["updated_at", "2016-12-06 15:42:10.255980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2c2e7fd5-d81f-40b7-841f-743fb8e77293' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2c2e7fd5-d81f-40b7-841f-743fb8e77293"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.264290"], ["updated_at", "2016-12-06 15:42:10.264290"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2c2e7fd5-d81f-40b7-841f-743fb8e77293', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.264290', "updated_at" = '2016-12-06 15:42:10.264290', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.268436', "updated_at" = '2016-12-06 15:42:10.268687', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2c2e7fd5-d81f-40b7-841f-743fb8e77293' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.278640"], ["updated_at", "2016-12-06 15:42:10.278640"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.280092"], ["updated_at", "2016-12-06 15:42:10.280092"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.281144"], ["updated_at", "2016-12-06 15:42:10.281144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.288415"], ["updated_at", "2016-12-06 15:42:10.288415"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.292461"], ["updated_at", "2016-12-06 15:42:10.292461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.301738"], ["updated_at", "2016-12-06 15:42:10.301738"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.303589"], ["updated_at", "2016-12-06 15:42:10.303589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b12208e3-0d5b-4c9c-9815-5a3fce917411' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b12208e3-0d5b-4c9c-9815-5a3fce917411"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.311413"], ["updated_at", "2016-12-06 15:42:10.311413"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b12208e3-0d5b-4c9c-9815-5a3fce917411', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.311413', "updated_at" = '2016-12-06 15:42:10.311413', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.316728', "updated_at" = '2016-12-06 15:42:10.316996', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b12208e3-0d5b-4c9c-9815-5a3fce917411' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.326708"], ["updated_at", "2016-12-06 15:42:10.326708"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.328176"], ["updated_at", "2016-12-06 15:42:10.328176"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.329224"], ["updated_at", "2016-12-06 15:42:10.329224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.335326"], ["updated_at", "2016-12-06 15:42:10.335326"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.337483"], ["updated_at", "2016-12-06 15:42:10.337483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.345120"], ["updated_at", "2016-12-06 15:42:10.345120"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.347233"], ["updated_at", "2016-12-06 15:42:10.347233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2362912f-1e33-41d6-8f5f-a809918ab63c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2362912f-1e33-41d6-8f5f-a809918ab63c"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.361550"], ["updated_at", "2016-12-06 15:42:10.361550"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2362912f-1e33-41d6-8f5f-a809918ab63c', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.361550', "updated_at" = '2016-12-06 15:42:10.361550', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.366451', "updated_at" = '2016-12-06 15:42:10.366783', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2362912f-1e33-41d6-8f5f-a809918ab63c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.379303"], ["updated_at", "2016-12-06 15:42:10.379303"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.381785"], ["updated_at", "2016-12-06 15:42:10.381785"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.383471"], ["updated_at", "2016-12-06 15:42:10.383471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.391038"], ["updated_at", "2016-12-06 15:42:10.391038"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.393192"], ["updated_at", "2016-12-06 15:42:10.393192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.402404"], ["updated_at", "2016-12-06 15:42:10.402404"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.404340"], ["updated_at", "2016-12-06 15:42:10.404340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '48735d56-01a4-46fb-812f-fe86414967c4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "48735d56-01a4-46fb-812f-fe86414967c4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.412143"], ["updated_at", "2016-12-06 15:42:10.412143"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '48735d56-01a4-46fb-812f-fe86414967c4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.412143', "updated_at" = '2016-12-06 15:42:10.412143', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.418260', "updated_at" = '2016-12-06 15:42:10.418548', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '48735d56-01a4-46fb-812f-fe86414967c4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.430206"], ["updated_at", "2016-12-06 15:42:10.430206"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.432568"], ["updated_at", "2016-12-06 15:42:10.432568"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.433773"], ["updated_at", "2016-12-06 15:42:10.433773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.443460"], ["updated_at", "2016-12-06 15:42:10.443460"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.445973"], ["updated_at", "2016-12-06 15:42:10.445973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.454661"], ["updated_at", "2016-12-06 15:42:10.454661"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.456483"], ["updated_at", "2016-12-06 15:42:10.456483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '732d7dd9-bbe2-486b-8300-304edb9d3bc9' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "732d7dd9-bbe2-486b-8300-304edb9d3bc9"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.464161"], ["updated_at", "2016-12-06 15:42:10.464161"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '732d7dd9-bbe2-486b-8300-304edb9d3bc9', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.464161', "updated_at" = '2016-12-06 15:42:10.464161', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.468583', "updated_at" = '2016-12-06 15:42:10.468866', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '732d7dd9-bbe2-486b-8300-304edb9d3bc9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.480214"], ["updated_at", "2016-12-06 15:42:10.480214"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.482840"], ["updated_at", "2016-12-06 15:42:10.482840"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.484564"], ["updated_at", "2016-12-06 15:42:10.484564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.492060"], ["updated_at", "2016-12-06 15:42:10.492060"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.494179"], ["updated_at", "2016-12-06 15:42:10.494179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.506613"], ["updated_at", "2016-12-06 15:42:10.506613"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.509706"], ["updated_at", "2016-12-06 15:42:10.509706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6fb0b090-9cbc-4665-b1df-088d35b31724' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6fb0b090-9cbc-4665-b1df-088d35b31724"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.520767"], ["updated_at", "2016-12-06 15:42:10.520767"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6fb0b090-9cbc-4665-b1df-088d35b31724', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.520767', "updated_at" = '2016-12-06 15:42:10.520767', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.524611', "updated_at" = '2016-12-06 15:42:10.524848', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6fb0b090-9cbc-4665-b1df-088d35b31724' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.534412"], ["updated_at", "2016-12-06 15:42:10.534412"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.535903"], ["updated_at", "2016-12-06 15:42:10.535903"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.536961"], ["updated_at", "2016-12-06 15:42:10.536961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.543028"], ["updated_at", "2016-12-06 15:42:10.543028"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.545613"], ["updated_at", "2016-12-06 15:42:10.545613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.554236"], ["updated_at", "2016-12-06 15:42:10.554236"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.556076"], ["updated_at", "2016-12-06 15:42:10.556076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cee9cacb-c9e3-4cbb-b0e1-924681ebf220' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cee9cacb-c9e3-4cbb-b0e1-924681ebf220"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.563717"], ["updated_at", "2016-12-06 15:42:10.563717"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cee9cacb-c9e3-4cbb-b0e1-924681ebf220', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.563717', "updated_at" = '2016-12-06 15:42:10.563717', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.568112', "updated_at" = '2016-12-06 15:42:10.568438', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cee9cacb-c9e3-4cbb-b0e1-924681ebf220' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.581192"], ["updated_at", "2016-12-06 15:42:10.581192"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.583720"], ["updated_at", "2016-12-06 15:42:10.583720"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.585491"], ["updated_at", "2016-12-06 15:42:10.585491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.592889"], ["updated_at", "2016-12-06 15:42:10.592889"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.595331"], ["updated_at", "2016-12-06 15:42:10.595331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:42:10.607926"], ["updated_at", "2016-12-06 15:42:10.607926"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:42:10.611008"], ["updated_at", "2016-12-06 15:42:10.611008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a81f4184-0f0e-42f6-b2c7-b6bb2544f023' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a81f4184-0f0e-42f6-b2c7-b6bb2544f023"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.620633"], ["updated_at", "2016-12-06 15:42:10.620633"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a81f4184-0f0e-42f6-b2c7-b6bb2544f023', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.620633', "updated_at" = '2016-12-06 15:42:10.620633', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.624188', "updated_at" = '2016-12-06 15:42:10.624421', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a81f4184-0f0e-42f6-b2c7-b6bb2544f023' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.633424"], ["updated_at", "2016-12-06 15:42:10.633424"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.634972"], ["updated_at", "2016-12-06 15:42:10.634972"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.636072"], ["updated_at", "2016-12-06 15:42:10.636072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.643985"], ["updated_at", "2016-12-06 15:42:10.643985"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.648425"], ["updated_at", "2016-12-06 15:42:10.648425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8598fa8e-4956-4907-b1d1-432f41ba8318' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8598fa8e-4956-4907-b1d1-432f41ba8318"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:42:10.658829"], ["updated_at", "2016-12-06 15:42:10.658829"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8598fa8e-4956-4907-b1d1-432f41ba8318', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:42:10.658829', "updated_at" = '2016-12-06 15:42:10.658829', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:42:10.662237', "updated_at" = '2016-12-06 15:42:10.662443', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8598fa8e-4956-4907-b1d1-432f41ba8318' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:42:10.671848"], ["updated_at", "2016-12-06 15:42:10.671848"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.673283"], ["updated_at", "2016-12-06 15:42:10.673283"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:42:10.674352"], ["updated_at", "2016-12-06 15:42:10.674352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:42:10.680316"], ["updated_at", "2016-12-06 15:42:10.680316"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:42:10.682781"], ["updated_at", "2016-12-06 15:42:10.682781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.184698"], ["updated_at", "2016-12-06 15:43:09.184698"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.204242"], ["updated_at", "2016-12-06 15:43:09.204242"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.206583"], ["updated_at", "2016-12-06 15:43:09.206583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.328039"], ["updated_at", "2016-12-06 15:43:09.328039"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.336281"], ["updated_at", "2016-12-06 15:43:09.336281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.374135"], ["updated_at", "2016-12-06 15:43:09.374135"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.380940"], ["updated_at", "2016-12-06 15:43:09.380940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b65faf60-f171-4337-a03e-c1385942fffa' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b65faf60-f171-4337-a03e-c1385942fffa"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.426168"], ["updated_at", "2016-12-06 15:43:09.426168"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b65faf60-f171-4337-a03e-c1385942fffa', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.426168', "updated_at" = '2016-12-06 15:43:09.426168', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.430613', "updated_at" = '2016-12-06 15:43:09.430887', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b65faf60-f171-4337-a03e-c1385942fffa' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.454408"], ["updated_at", "2016-12-06 15:43:09.454408"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.455762"], ["updated_at", "2016-12-06 15:43:09.455762"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.456855"], ["updated_at", "2016-12-06 15:43:09.456855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.462498"], ["updated_at", "2016-12-06 15:43:09.462498"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.464824"], ["updated_at", "2016-12-06 15:43:09.464824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.471962"], ["updated_at", "2016-12-06 15:43:09.471962"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.473741"], ["updated_at", "2016-12-06 15:43:09.473741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9147b330-dc4a-4bc1-b758-5d5e7d907897' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9147b330-dc4a-4bc1-b758-5d5e7d907897"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.482636"], ["updated_at", "2016-12-06 15:43:09.482636"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9147b330-dc4a-4bc1-b758-5d5e7d907897', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.482636', "updated_at" = '2016-12-06 15:43:09.482636', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.487767', "updated_at" = '2016-12-06 15:43:09.488025', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9147b330-dc4a-4bc1-b758-5d5e7d907897' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.500475"], ["updated_at", "2016-12-06 15:43:09.500475"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.502589"], ["updated_at", "2016-12-06 15:43:09.502589"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.504156"], ["updated_at", "2016-12-06 15:43:09.504156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.511484"], ["updated_at", "2016-12-06 15:43:09.511484"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.513615"], ["updated_at", "2016-12-06 15:43:09.513615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.522525"], ["updated_at", "2016-12-06 15:43:09.522525"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.525841"], ["updated_at", "2016-12-06 15:43:09.525841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e4017546-cff8-454c-a31b-8b1ed8f9cc8c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e4017546-cff8-454c-a31b-8b1ed8f9cc8c"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.537529"], ["updated_at", "2016-12-06 15:43:09.537529"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e4017546-cff8-454c-a31b-8b1ed8f9cc8c', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.537529', "updated_at" = '2016-12-06 15:43:09.537529', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.541720', "updated_at" = '2016-12-06 15:43:09.542122', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e4017546-cff8-454c-a31b-8b1ed8f9cc8c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.552827"], ["updated_at", "2016-12-06 15:43:09.552827"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.554262"], ["updated_at", "2016-12-06 15:43:09.554262"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.555332"], ["updated_at", "2016-12-06 15:43:09.555332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.561375"], ["updated_at", "2016-12-06 15:43:09.561375"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.563429"], ["updated_at", "2016-12-06 15:43:09.563429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.569861"], ["updated_at", "2016-12-06 15:43:09.569861"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.571579"], ["updated_at", "2016-12-06 15:43:09.571579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0a13ace2-1a86-4691-9a67-e0f935d5cb32' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0a13ace2-1a86-4691-9a67-e0f935d5cb32"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.582271"], ["updated_at", "2016-12-06 15:43:09.582271"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.8ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0a13ace2-1a86-4691-9a67-e0f935d5cb32', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.582271', "updated_at" = '2016-12-06 15:43:09.582271', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.589421', "updated_at" = '2016-12-06 15:43:09.589782', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0a13ace2-1a86-4691-9a67-e0f935d5cb32' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.600502"], ["updated_at", "2016-12-06 15:43:09.600502"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.601867"], ["updated_at", "2016-12-06 15:43:09.601867"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.602904"], ["updated_at", "2016-12-06 15:43:09.602904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.608931"], ["updated_at", "2016-12-06 15:43:09.608931"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.613655"], ["updated_at", "2016-12-06 15:43:09.613655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.623519"], ["updated_at", "2016-12-06 15:43:09.623519"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.625282"], ["updated_at", "2016-12-06 15:43:09.625282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'adc254cc-ce88-4b2a-ab9a-b253071e298c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "adc254cc-ce88-4b2a-ab9a-b253071e298c"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.634750"], ["updated_at", "2016-12-06 15:43:09.634750"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'adc254cc-ce88-4b2a-ab9a-b253071e298c', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.634750', "updated_at" = '2016-12-06 15:43:09.634750', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.638971', "updated_at" = '2016-12-06 15:43:09.639208', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'adc254cc-ce88-4b2a-ab9a-b253071e298c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.652231"], ["updated_at", "2016-12-06 15:43:09.652231"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.653696"], ["updated_at", "2016-12-06 15:43:09.653696"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.654818"], ["updated_at", "2016-12-06 15:43:09.654818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.661390"], ["updated_at", "2016-12-06 15:43:09.661390"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.663788"], ["updated_at", "2016-12-06 15:43:09.663788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.671818"], ["updated_at", "2016-12-06 15:43:09.671818"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.674167"], ["updated_at", "2016-12-06 15:43:09.674167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '13d0dcd1-eedd-4c54-a646-b4557cdc1216' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "13d0dcd1-eedd-4c54-a646-b4557cdc1216"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.683811"], ["updated_at", "2016-12-06 15:43:09.683811"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '13d0dcd1-eedd-4c54-a646-b4557cdc1216', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.683811', "updated_at" = '2016-12-06 15:43:09.683811', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.688813', "updated_at" = '2016-12-06 15:43:09.689113', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '13d0dcd1-eedd-4c54-a646-b4557cdc1216' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.700411"], ["updated_at", "2016-12-06 15:43:09.700411"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.702237"], ["updated_at", "2016-12-06 15:43:09.702237"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.703388"], ["updated_at", "2016-12-06 15:43:09.703388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.709898"], ["updated_at", "2016-12-06 15:43:09.709898"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.713406"], ["updated_at", "2016-12-06 15:43:09.713406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.720793"], ["updated_at", "2016-12-06 15:43:09.720793"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.722554"], ["updated_at", "2016-12-06 15:43:09.722554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '917cf879-b080-4c0b-9b4b-8f399cfbafab' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "917cf879-b080-4c0b-9b4b-8f399cfbafab"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.731187"], ["updated_at", "2016-12-06 15:43:09.731187"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '917cf879-b080-4c0b-9b4b-8f399cfbafab', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.731187', "updated_at" = '2016-12-06 15:43:09.731187', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.736334', "updated_at" = '2016-12-06 15:43:09.736681', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '917cf879-b080-4c0b-9b4b-8f399cfbafab' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.748361"], ["updated_at", "2016-12-06 15:43:09.748361"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.750542"], ["updated_at", "2016-12-06 15:43:09.750542"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.752190"], ["updated_at", "2016-12-06 15:43:09.752190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.758997"], ["updated_at", "2016-12-06 15:43:09.758997"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.760845"], ["updated_at", "2016-12-06 15:43:09.760845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.767493"], ["updated_at", "2016-12-06 15:43:09.767493"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.769354"], ["updated_at", "2016-12-06 15:43:09.769354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'fad75692-2d4e-414d-8a18-55b79e4972c3' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "fad75692-2d4e-414d-8a18-55b79e4972c3"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.777138"], ["updated_at", "2016-12-06 15:43:09.777138"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'fad75692-2d4e-414d-8a18-55b79e4972c3', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.777138', "updated_at" = '2016-12-06 15:43:09.777138', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.781428', "updated_at" = '2016-12-06 15:43:09.781728', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'fad75692-2d4e-414d-8a18-55b79e4972c3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.793239"], ["updated_at", "2016-12-06 15:43:09.793239"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.794952"], ["updated_at", "2016-12-06 15:43:09.794952"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.796166"], ["updated_at", "2016-12-06 15:43:09.796166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.802619"], ["updated_at", "2016-12-06 15:43:09.802619"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.805341"], ["updated_at", "2016-12-06 15:43:09.805341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 15:43:09.812119"], ["updated_at", "2016-12-06 15:43:09.812119"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 15:43:09.813917"], ["updated_at", "2016-12-06 15:43:09.813917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f1a076de-e85f-4519-abab-78f996dbbb07' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f1a076de-e85f-4519-abab-78f996dbbb07"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.821607"], ["updated_at", "2016-12-06 15:43:09.821607"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f1a076de-e85f-4519-abab-78f996dbbb07', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.821607', "updated_at" = '2016-12-06 15:43:09.821607', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.825052', "updated_at" = '2016-12-06 15:43:09.825318', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f1a076de-e85f-4519-abab-78f996dbbb07' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.840558"], ["updated_at", "2016-12-06 15:43:09.840558"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.842475"], ["updated_at", "2016-12-06 15:43:09.842475"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.843575"], ["updated_at", "2016-12-06 15:43:09.843575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.851303"], ["updated_at", "2016-12-06 15:43:09.851303"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.853525"], ["updated_at", "2016-12-06 15:43:09.853525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '23e208c8-0ed7-4b63-94b8-f4d106c8f9b4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "23e208c8-0ed7-4b63-94b8-f4d106c8f9b4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 15:43:09.860314"], ["updated_at", "2016-12-06 15:43:09.860314"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '23e208c8-0ed7-4b63-94b8-f4d106c8f9b4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 15:43:09.860314', "updated_at" = '2016-12-06 15:43:09.860314', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 15:43:09.863616', "updated_at" = '2016-12-06 15:43:09.863819', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '23e208c8-0ed7-4b63-94b8-f4d106c8f9b4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 15:43:09.874526"], ["updated_at", "2016-12-06 15:43:09.874526"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.876807"], ["updated_at", "2016-12-06 15:43:09.876807"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 15:43:09.878339"], ["updated_at", "2016-12-06 15:43:09.878339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 15:43:09.886744"], ["updated_at", "2016-12-06 15:43:09.886744"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 15:43:09.889083"], ["updated_at", "2016-12-06 15:43:09.889083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.121043"], ["updated_at", "2016-12-06 16:39:58.121043"]] SQL (1.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.144437"], ["updated_at", "2016-12-06 16:39:58.144437"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.147793"], ["updated_at", "2016-12-06 16:39:58.147793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.6ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.6ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.351760"], ["updated_at", "2016-12-06 16:39:58.351760"]] SQL (0.8ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.368462"], ["updated_at", "2016-12-06 16:39:58.368462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.5ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.8ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.421430"], ["updated_at", "2016-12-06 16:39:58.421430"]] SQL (1.0ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.435643"], ["updated_at", "2016-12-06 16:39:58.435643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.4ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4669ecef-89b0-4dc4-a4b5-adb3eb5fac67' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4669ecef-89b0-4dc4-a4b5-adb3eb5fac67"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.512482"], ["updated_at", "2016-12-06 16:39:58.512482"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4669ecef-89b0-4dc4-a4b5-adb3eb5fac67', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.512482', "updated_at" = '2016-12-06 16:39:58.512482', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:58.521142', "updated_at" = '2016-12-06 16:39:58.521511', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.5ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4669ecef-89b0-4dc4-a4b5-adb3eb5fac67' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.560092"], ["updated_at", "2016-12-06 16:39:58.560092"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.562454"], ["updated_at", "2016-12-06 16:39:58.562454"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.564349"], ["updated_at", "2016-12-06 16:39:58.564349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.5ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.575875"], ["updated_at", "2016-12-06 16:39:58.575875"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.581599"], ["updated_at", "2016-12-06 16:39:58.581599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.5ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.596274"], ["updated_at", "2016-12-06 16:39:58.596274"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.601447"], ["updated_at", "2016-12-06 16:39:58.601447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7dcdee9a-7fd5-4fe9-98c5-34642dea2b87' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.6ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7dcdee9a-7fd5-4fe9-98c5-34642dea2b87"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.620444"], ["updated_at", "2016-12-06 16:39:58.620444"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.4ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7dcdee9a-7fd5-4fe9-98c5-34642dea2b87', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.620444', "updated_at" = '2016-12-06 16:39:58.620444', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:58.632869', "updated_at" = '2016-12-06 16:39:58.634071', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7dcdee9a-7fd5-4fe9-98c5-34642dea2b87' AND "ems_registrations"."id" != 1) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.655300"], ["updated_at", "2016-12-06 16:39:58.655300"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.658036"], ["updated_at", "2016-12-06 16:39:58.658036"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.660208"], ["updated_at", "2016-12-06 16:39:58.660208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.671191"], ["updated_at", "2016-12-06 16:39:58.671191"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.674274"], ["updated_at", "2016-12-06 16:39:58.674274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.6ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.687303"], ["updated_at", "2016-12-06 16:39:58.687303"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.691925"], ["updated_at", "2016-12-06 16:39:58.691925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4421a1a1-8c64-4e7e-a35b-c9ff535d71ba' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4421a1a1-8c64-4e7e-a35b-c9ff535d71ba"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.710653"], ["updated_at", "2016-12-06 16:39:58.710653"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4421a1a1-8c64-4e7e-a35b-c9ff535d71ba', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.710653', "updated_at" = '2016-12-06 16:39:58.710653', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.3ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:58.718644', "updated_at" = '2016-12-06 16:39:58.719428', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4421a1a1-8c64-4e7e-a35b-c9ff535d71ba' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.738146"], ["updated_at", "2016-12-06 16:39:58.738146"]] SQL (0.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.742005"], ["updated_at", "2016-12-06 16:39:58.742005"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.746816"], ["updated_at", "2016-12-06 16:39:58.746816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.760280"], ["updated_at", "2016-12-06 16:39:58.760280"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.764147"], ["updated_at", "2016-12-06 16:39:58.764147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.780773"], ["updated_at", "2016-12-06 16:39:58.780773"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.787209"], ["updated_at", "2016-12-06 16:39:58.787209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4c34a9db-592d-4af9-92e6-ced86ffd8ac8' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4c34a9db-592d-4af9-92e6-ced86ffd8ac8"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.807667"], ["updated_at", "2016-12-06 16:39:58.807667"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4c34a9db-592d-4af9-92e6-ced86ffd8ac8', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.807667', "updated_at" = '2016-12-06 16:39:58.807667', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:58.814658', "updated_at" = '2016-12-06 16:39:58.815074', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4c34a9db-592d-4af9-92e6-ced86ffd8ac8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.829257"], ["updated_at", "2016-12-06 16:39:58.829257"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.832612"], ["updated_at", "2016-12-06 16:39:58.832612"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.835924"], ["updated_at", "2016-12-06 16:39:58.835924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.853436"], ["updated_at", "2016-12-06 16:39:58.853436"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.859517"], ["updated_at", "2016-12-06 16:39:58.859517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.4ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.877293"], ["updated_at", "2016-12-06 16:39:58.877293"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.881459"], ["updated_at", "2016-12-06 16:39:58.881459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'de6f39d1-f32a-4095-b084-d6e7027d9282' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.6ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "de6f39d1-f32a-4095-b084-d6e7027d9282"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.899613"], ["updated_at", "2016-12-06 16:39:58.899613"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'de6f39d1-f32a-4095-b084-d6e7027d9282', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.899613', "updated_at" = '2016-12-06 16:39:58.899613', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:58.908439', "updated_at" = '2016-12-06 16:39:58.909476', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'de6f39d1-f32a-4095-b084-d6e7027d9282' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:58.928204"], ["updated_at", "2016-12-06 16:39:58.928204"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.931122"], ["updated_at", "2016-12-06 16:39:58.931122"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:58.934300"], ["updated_at", "2016-12-06 16:39:58.934300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:58.948032"], ["updated_at", "2016-12-06 16:39:58.948032"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:58.953404"], ["updated_at", "2016-12-06 16:39:58.953404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:58.970846"], ["updated_at", "2016-12-06 16:39:58.970846"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:58.976961"], ["updated_at", "2016-12-06 16:39:58.976961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '64832e05-93e0-46d3-8341-cb6548190a16' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "64832e05-93e0-46d3-8341-cb6548190a16"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:58.995162"], ["updated_at", "2016-12-06 16:39:58.995162"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.4ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '64832e05-93e0-46d3-8341-cb6548190a16', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:58.995162', "updated_at" = '2016-12-06 16:39:58.995162', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:59.004293', "updated_at" = '2016-12-06 16:39:59.004806', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '64832e05-93e0-46d3-8341-cb6548190a16' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.027097"], ["updated_at", "2016-12-06 16:39:59.027097"]] SQL (0.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.031908"], ["updated_at", "2016-12-06 16:39:59.031908"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.036058"], ["updated_at", "2016-12-06 16:39:59.036058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.052091"], ["updated_at", "2016-12-06 16:39:59.052091"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.057863"], ["updated_at", "2016-12-06 16:39:59.057863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:59.077984"], ["updated_at", "2016-12-06 16:39:59.077984"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:59.081703"], ["updated_at", "2016-12-06 16:39:59.081703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e5776159-4409-46e0-8cc0-da85a27febee' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (1.7ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e5776159-4409-46e0-8cc0-da85a27febee"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:59.099383"], ["updated_at", "2016-12-06 16:39:59.099383"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e5776159-4409-46e0-8cc0-da85a27febee', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:59.099383', "updated_at" = '2016-12-06 16:39:59.099383', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:59.111390', "updated_at" = '2016-12-06 16:39:59.112207', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e5776159-4409-46e0-8cc0-da85a27febee' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.126179"], ["updated_at", "2016-12-06 16:39:59.126179"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.128081"], ["updated_at", "2016-12-06 16:39:59.128081"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.129605"], ["updated_at", "2016-12-06 16:39:59.129605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.139873"], ["updated_at", "2016-12-06 16:39:59.139873"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.143658"], ["updated_at", "2016-12-06 16:39:59.143658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:59.164230"], ["updated_at", "2016-12-06 16:39:59.164230"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:59.168738"], ["updated_at", "2016-12-06 16:39:59.168738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ffee0536-3a81-491a-8a5d-412d32f54ac1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ffee0536-3a81-491a-8a5d-412d32f54ac1"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:59.187218"], ["updated_at", "2016-12-06 16:39:59.187218"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ffee0536-3a81-491a-8a5d-412d32f54ac1', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:59.187218', "updated_at" = '2016-12-06 16:39:59.187218', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:59.194589', "updated_at" = '2016-12-06 16:39:59.195435', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ffee0536-3a81-491a-8a5d-412d32f54ac1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.217961"], ["updated_at", "2016-12-06 16:39:59.217961"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.221740"], ["updated_at", "2016-12-06 16:39:59.221740"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.224065"], ["updated_at", "2016-12-06 16:39:59.224065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.234031"], ["updated_at", "2016-12-06 16:39:59.234031"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.237100"], ["updated_at", "2016-12-06 16:39:59.237100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:39:59.249448"], ["updated_at", "2016-12-06 16:39:59.249448"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:39:59.254449"], ["updated_at", "2016-12-06 16:39:59.254449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.4ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ad53c42a-9c65-4060-a1b1-d121576a0413' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ad53c42a-9c65-4060-a1b1-d121576a0413"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:59.273015"], ["updated_at", "2016-12-06 16:39:59.273015"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ad53c42a-9c65-4060-a1b1-d121576a0413', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:59.273015', "updated_at" = '2016-12-06 16:39:59.273015', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:59.283304', "updated_at" = '2016-12-06 16:39:59.283903', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ad53c42a-9c65-4060-a1b1-d121576a0413' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.304703"], ["updated_at", "2016-12-06 16:39:59.304703"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.307777"], ["updated_at", "2016-12-06 16:39:59.307777"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.310844"], ["updated_at", "2016-12-06 16:39:59.310844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.323568"], ["updated_at", "2016-12-06 16:39:59.323568"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.327991"], ["updated_at", "2016-12-06 16:39:59.327991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '73093348-cb5d-4279-a5d1-96d97d25417b' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "73093348-cb5d-4279-a5d1-96d97d25417b"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:39:59.344908"], ["updated_at", "2016-12-06 16:39:59.344908"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '73093348-cb5d-4279-a5d1-96d97d25417b', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:39:59.344908', "updated_at" = '2016-12-06 16:39:59.344908', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.3ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:39:59.352575', "updated_at" = '2016-12-06 16:39:59.353260', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.2ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.3ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '73093348-cb5d-4279-a5d1-96d97d25417b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.372754"], ["updated_at", "2016-12-06 16:39:59.372754"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.376005"], ["updated_at", "2016-12-06 16:39:59.376005"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.378656"], ["updated_at", "2016-12-06 16:39:59.378656"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.392053"], ["updated_at", "2016-12-06 16:39:59.392053"]] SQL (0.9ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.396393"], ["updated_at", "2016-12-06 16:39:59.396393"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:39:59.423751"], ["updated_at", "2016-12-06 16:39:59.423751"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.427309"], ["updated_at", "2016-12-06 16:39:59.427309"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:39:59.429858"], ["updated_at", "2016-12-06 16:39:59.429858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:39:59.440477"], ["updated_at", "2016-12-06 16:39:59.440477"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:39:59.443546"], ["updated_at", "2016-12-06 16:39:59.443546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:40:59.778100"], ["updated_at", "2016-12-06 16:40:59.778100"]] SQL (1.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:40:59.794494"], ["updated_at", "2016-12-06 16:40:59.794494"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:40:59.797623"], ["updated_at", "2016-12-06 16:40:59.797623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.6ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:40:59.928655"], ["updated_at", "2016-12-06 16:40:59.928655"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:40:59.938049"], ["updated_at", "2016-12-06 16:40:59.938049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.5ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.9ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:40:59.968624"], ["updated_at", "2016-12-06 16:40:59.968624"]] SQL (0.9ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:40:59.976028"], ["updated_at", "2016-12-06 16:40:59.976028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ab5c23a1-f7b6-49f8-946d-c2190f8cb9d8' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.7ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ab5c23a1-f7b6-49f8-946d-c2190f8cb9d8"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.023784"], ["updated_at", "2016-12-06 16:41:00.023784"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ab5c23a1-f7b6-49f8-946d-c2190f8cb9d8', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.023784', "updated_at" = '2016-12-06 16:41:00.023784', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.030690', "updated_at" = '2016-12-06 16:41:00.030928', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.7ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ab5c23a1-f7b6-49f8-946d-c2190f8cb9d8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.057815"], ["updated_at", "2016-12-06 16:41:00.057815"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.059886"], ["updated_at", "2016-12-06 16:41:00.059886"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.061439"], ["updated_at", "2016-12-06 16:41:00.061439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.068531"], ["updated_at", "2016-12-06 16:41:00.068531"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.071173"], ["updated_at", "2016-12-06 16:41:00.071173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.079810"], ["updated_at", "2016-12-06 16:41:00.079810"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.081773"], ["updated_at", "2016-12-06 16:41:00.081773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '49adda78-4d0e-4159-a389-6e993ea75770' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "49adda78-4d0e-4159-a389-6e993ea75770"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.091618"], ["updated_at", "2016-12-06 16:41:00.091618"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '49adda78-4d0e-4159-a389-6e993ea75770', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.091618', "updated_at" = '2016-12-06 16:41:00.091618', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.095736', "updated_at" = '2016-12-06 16:41:00.096060', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '49adda78-4d0e-4159-a389-6e993ea75770' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.106307"], ["updated_at", "2016-12-06 16:41:00.106307"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.107716"], ["updated_at", "2016-12-06 16:41:00.107716"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.108784"], ["updated_at", "2016-12-06 16:41:00.108784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.114928"], ["updated_at", "2016-12-06 16:41:00.114928"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.117791"], ["updated_at", "2016-12-06 16:41:00.117791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.127158"], ["updated_at", "2016-12-06 16:41:00.127158"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.129547"], ["updated_at", "2016-12-06 16:41:00.129547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '67be8751-5d33-4ee0-943e-7ac13eb87d31' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "67be8751-5d33-4ee0-943e-7ac13eb87d31"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.139088"], ["updated_at", "2016-12-06 16:41:00.139088"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '67be8751-5d33-4ee0-943e-7ac13eb87d31', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.139088', "updated_at" = '2016-12-06 16:41:00.139088', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.143462', "updated_at" = '2016-12-06 16:41:00.143755', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '67be8751-5d33-4ee0-943e-7ac13eb87d31' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.154175"], ["updated_at", "2016-12-06 16:41:00.154175"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.155762"], ["updated_at", "2016-12-06 16:41:00.155762"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.156891"], ["updated_at", "2016-12-06 16:41:00.156891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.162997"], ["updated_at", "2016-12-06 16:41:00.162997"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.165074"], ["updated_at", "2016-12-06 16:41:00.165074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.172532"], ["updated_at", "2016-12-06 16:41:00.172532"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.175451"], ["updated_at", "2016-12-06 16:41:00.175451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cc023abf-d1cc-42e4-899c-ac76d44544eb' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cc023abf-d1cc-42e4-899c-ac76d44544eb"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.184145"], ["updated_at", "2016-12-06 16:41:00.184145"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cc023abf-d1cc-42e4-899c-ac76d44544eb', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.184145', "updated_at" = '2016-12-06 16:41:00.184145', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.192148', "updated_at" = '2016-12-06 16:41:00.192608', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cc023abf-d1cc-42e4-899c-ac76d44544eb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.203606"], ["updated_at", "2016-12-06 16:41:00.203606"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.204991"], ["updated_at", "2016-12-06 16:41:00.204991"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.206064"], ["updated_at", "2016-12-06 16:41:00.206064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.212247"], ["updated_at", "2016-12-06 16:41:00.212247"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.214453"], ["updated_at", "2016-12-06 16:41:00.214453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.224068"], ["updated_at", "2016-12-06 16:41:00.224068"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.226419"], ["updated_at", "2016-12-06 16:41:00.226419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '55aeef79-c282-46b9-9f30-b2b64012f2e2' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "55aeef79-c282-46b9-9f30-b2b64012f2e2"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.234443"], ["updated_at", "2016-12-06 16:41:00.234443"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '55aeef79-c282-46b9-9f30-b2b64012f2e2', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.234443', "updated_at" = '2016-12-06 16:41:00.234443', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.238491', "updated_at" = '2016-12-06 16:41:00.238755', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '55aeef79-c282-46b9-9f30-b2b64012f2e2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.248443"], ["updated_at", "2016-12-06 16:41:00.248443"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.250018"], ["updated_at", "2016-12-06 16:41:00.250018"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.251327"], ["updated_at", "2016-12-06 16:41:00.251327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.257730"], ["updated_at", "2016-12-06 16:41:00.257730"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.259910"], ["updated_at", "2016-12-06 16:41:00.259910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.267445"], ["updated_at", "2016-12-06 16:41:00.267445"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.269678"], ["updated_at", "2016-12-06 16:41:00.269678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3b1d5d8d-fd38-4e61-90c0-154c822808a7' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3b1d5d8d-fd38-4e61-90c0-154c822808a7"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.279433"], ["updated_at", "2016-12-06 16:41:00.279433"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3b1d5d8d-fd38-4e61-90c0-154c822808a7', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.279433', "updated_at" = '2016-12-06 16:41:00.279433', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.283214', "updated_at" = '2016-12-06 16:41:00.283509', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3b1d5d8d-fd38-4e61-90c0-154c822808a7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.293545"], ["updated_at", "2016-12-06 16:41:00.293545"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.294930"], ["updated_at", "2016-12-06 16:41:00.294930"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.296019"], ["updated_at", "2016-12-06 16:41:00.296019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.302199"], ["updated_at", "2016-12-06 16:41:00.302199"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.304431"], ["updated_at", "2016-12-06 16:41:00.304431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.311910"], ["updated_at", "2016-12-06 16:41:00.311910"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.313829"], ["updated_at", "2016-12-06 16:41:00.313829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '824b7a02-2796-49a1-a926-42d2720c625c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "824b7a02-2796-49a1-a926-42d2720c625c"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.323576"], ["updated_at", "2016-12-06 16:41:00.323576"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '824b7a02-2796-49a1-a926-42d2720c625c', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.323576', "updated_at" = '2016-12-06 16:41:00.323576', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.327904', "updated_at" = '2016-12-06 16:41:00.328157', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '824b7a02-2796-49a1-a926-42d2720c625c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.339320"], ["updated_at", "2016-12-06 16:41:00.339320"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.341961"], ["updated_at", "2016-12-06 16:41:00.341961"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.343775"], ["updated_at", "2016-12-06 16:41:00.343775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.351959"], ["updated_at", "2016-12-06 16:41:00.351959"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.354139"], ["updated_at", "2016-12-06 16:41:00.354139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.361971"], ["updated_at", "2016-12-06 16:41:00.361971"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.363802"], ["updated_at", "2016-12-06 16:41:00.363802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0d30c863-daf0-40f3-bc2e-499ac0ca8fd6' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0d30c863-daf0-40f3-bc2e-499ac0ca8fd6"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.373654"], ["updated_at", "2016-12-06 16:41:00.373654"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0d30c863-daf0-40f3-bc2e-499ac0ca8fd6', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.373654', "updated_at" = '2016-12-06 16:41:00.373654', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.378182', "updated_at" = '2016-12-06 16:41:00.378494', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0d30c863-daf0-40f3-bc2e-499ac0ca8fd6' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.388980"], ["updated_at", "2016-12-06 16:41:00.388980"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.390877"], ["updated_at", "2016-12-06 16:41:00.390877"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.392302"], ["updated_at", "2016-12-06 16:41:00.392302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.399729"], ["updated_at", "2016-12-06 16:41:00.399729"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.402148"], ["updated_at", "2016-12-06 16:41:00.402148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-06 16:41:00.411880"], ["updated_at", "2016-12-06 16:41:00.411880"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-06 16:41:00.414359"], ["updated_at", "2016-12-06 16:41:00.414359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '94f2e66a-0cde-41b1-b2ad-dfd3aa3ea3c4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "94f2e66a-0cde-41b1-b2ad-dfd3aa3ea3c4"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.425897"], ["updated_at", "2016-12-06 16:41:00.425897"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '94f2e66a-0cde-41b1-b2ad-dfd3aa3ea3c4', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.425897', "updated_at" = '2016-12-06 16:41:00.425897', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.430539', "updated_at" = '2016-12-06 16:41:00.430825', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '94f2e66a-0cde-41b1-b2ad-dfd3aa3ea3c4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.440710"], ["updated_at", "2016-12-06 16:41:00.440710"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.442339"], ["updated_at", "2016-12-06 16:41:00.442339"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.443999"], ["updated_at", "2016-12-06 16:41:00.443999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.451121"], ["updated_at", "2016-12-06 16:41:00.451121"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.453678"], ["updated_at", "2016-12-06 16:41:00.453678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '25f808f8-cff1-45a2-a1e9-9a6285fbc1ec' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "25f808f8-cff1-45a2-a1e9-9a6285fbc1ec"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-06 16:41:00.462130"], ["updated_at", "2016-12-06 16:41:00.462130"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '25f808f8-cff1-45a2-a1e9-9a6285fbc1ec', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-06 16:41:00.462130', "updated_at" = '2016-12-06 16:41:00.462130', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-06 16:41:00.465818', "updated_at" = '2016-12-06 16:41:00.466049', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '25f808f8-cff1-45a2-a1e9-9a6285fbc1ec' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.478628"], ["updated_at", "2016-12-06 16:41:00.478628"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.480194"], ["updated_at", "2016-12-06 16:41:00.480194"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.481491"], ["updated_at", "2016-12-06 16:41:00.481491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-06 16:41:00.487497"], ["updated_at", "2016-12-06 16:41:00.487497"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.488959"], ["updated_at", "2016-12-06 16:41:00.488959"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-06 16:41:00.490322"], ["updated_at", "2016-12-06 16:41:00.490322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-06 16:41:00.497415"], ["updated_at", "2016-12-06 16:41:00.497415"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-06 16:41:00.500019"], ["updated_at", "2016-12-06 16:41:00.500019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.272398"], ["updated_at", "2016-12-07 08:39:16.272398"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.285945"], ["updated_at", "2016-12-07 08:39:16.285945"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.287441"], ["updated_at", "2016-12-07 08:39:16.287441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.412164"], ["updated_at", "2016-12-07 08:39:16.412164"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.419824"], ["updated_at", "2016-12-07 08:39:16.419824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.449134"], ["updated_at", "2016-12-07 08:39:16.449134"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.456210"], ["updated_at", "2016-12-07 08:39:16.456210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cb2ce021-23ba-403a-b0f2-64de8959e75b' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cb2ce021-23ba-403a-b0f2-64de8959e75b"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.494718"], ["updated_at", "2016-12-07 08:39:16.494718"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cb2ce021-23ba-403a-b0f2-64de8959e75b', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.494718', "updated_at" = '2016-12-07 08:39:16.494718', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.498977', "updated_at" = '2016-12-07 08:39:16.499257', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cb2ce021-23ba-403a-b0f2-64de8959e75b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.527326"], ["updated_at", "2016-12-07 08:39:16.527326"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.528818"], ["updated_at", "2016-12-07 08:39:16.528818"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.529967"], ["updated_at", "2016-12-07 08:39:16.529967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.536255"], ["updated_at", "2016-12-07 08:39:16.536255"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.538538"], ["updated_at", "2016-12-07 08:39:16.538538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.546352"], ["updated_at", "2016-12-07 08:39:16.546352"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.549414"], ["updated_at", "2016-12-07 08:39:16.549414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '00125d5f-6db4-457b-8e94-302237830faf' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "00125d5f-6db4-457b-8e94-302237830faf"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.557514"], ["updated_at", "2016-12-07 08:39:16.557514"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '00125d5f-6db4-457b-8e94-302237830faf', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.557514', "updated_at" = '2016-12-07 08:39:16.557514', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.561396', "updated_at" = '2016-12-07 08:39:16.561663', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '00125d5f-6db4-457b-8e94-302237830faf' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.573510"], ["updated_at", "2016-12-07 08:39:16.573510"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.575410"], ["updated_at", "2016-12-07 08:39:16.575410"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.576524"], ["updated_at", "2016-12-07 08:39:16.576524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.583113"], ["updated_at", "2016-12-07 08:39:16.583113"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.585245"], ["updated_at", "2016-12-07 08:39:16.585245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.594704"], ["updated_at", "2016-12-07 08:39:16.594704"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.598333"], ["updated_at", "2016-12-07 08:39:16.598333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5f6fd0b2-e13a-41e1-b524-1c57b70be862' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5f6fd0b2-e13a-41e1-b524-1c57b70be862"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.610014"], ["updated_at", "2016-12-07 08:39:16.610014"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5f6fd0b2-e13a-41e1-b524-1c57b70be862', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.610014', "updated_at" = '2016-12-07 08:39:16.610014', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.615020', "updated_at" = '2016-12-07 08:39:16.615380', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5f6fd0b2-e13a-41e1-b524-1c57b70be862' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.625212"], ["updated_at", "2016-12-07 08:39:16.625212"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.626547"], ["updated_at", "2016-12-07 08:39:16.626547"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.627672"], ["updated_at", "2016-12-07 08:39:16.627672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.633998"], ["updated_at", "2016-12-07 08:39:16.633998"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.636277"], ["updated_at", "2016-12-07 08:39:16.636277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.643732"], ["updated_at", "2016-12-07 08:39:16.643732"]] SQL (0.6ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.645673"], ["updated_at", "2016-12-07 08:39:16.645673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '210a7ab4-7d7e-4afa-a489-4c9c7530464f' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "210a7ab4-7d7e-4afa-a489-4c9c7530464f"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.659872"], ["updated_at", "2016-12-07 08:39:16.659872"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '210a7ab4-7d7e-4afa-a489-4c9c7530464f', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.659872', "updated_at" = '2016-12-07 08:39:16.659872', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.664466', "updated_at" = '2016-12-07 08:39:16.664802', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '210a7ab4-7d7e-4afa-a489-4c9c7530464f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.676225"], ["updated_at", "2016-12-07 08:39:16.676225"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.677649"], ["updated_at", "2016-12-07 08:39:16.677649"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.678677"], ["updated_at", "2016-12-07 08:39:16.678677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.686042"], ["updated_at", "2016-12-07 08:39:16.686042"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.690502"], ["updated_at", "2016-12-07 08:39:16.690502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.701578"], ["updated_at", "2016-12-07 08:39:16.701578"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.703716"], ["updated_at", "2016-12-07 08:39:16.703716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e99dfbfb-ff0a-4e3c-9fba-697ed3d8a9d6' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e99dfbfb-ff0a-4e3c-9fba-697ed3d8a9d6"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.711394"], ["updated_at", "2016-12-07 08:39:16.711394"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e99dfbfb-ff0a-4e3c-9fba-697ed3d8a9d6', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.711394', "updated_at" = '2016-12-07 08:39:16.711394', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.715532', "updated_at" = '2016-12-07 08:39:16.715844', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e99dfbfb-ff0a-4e3c-9fba-697ed3d8a9d6' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.727734"], ["updated_at", "2016-12-07 08:39:16.727734"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.730210"], ["updated_at", "2016-12-07 08:39:16.730210"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.731939"], ["updated_at", "2016-12-07 08:39:16.731939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.740322"], ["updated_at", "2016-12-07 08:39:16.740322"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.742764"], ["updated_at", "2016-12-07 08:39:16.742764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.751471"], ["updated_at", "2016-12-07 08:39:16.751471"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.753323"], ["updated_at", "2016-12-07 08:39:16.753323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ec47b45e-3ff3-4611-89c3-4c52bd2ba49f' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ec47b45e-3ff3-4611-89c3-4c52bd2ba49f"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.760854"], ["updated_at", "2016-12-07 08:39:16.760854"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ec47b45e-3ff3-4611-89c3-4c52bd2ba49f', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.760854', "updated_at" = '2016-12-07 08:39:16.760854', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.765077', "updated_at" = '2016-12-07 08:39:16.765430', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ec47b45e-3ff3-4611-89c3-4c52bd2ba49f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.778031"], ["updated_at", "2016-12-07 08:39:16.778031"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.780446"], ["updated_at", "2016-12-07 08:39:16.780446"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.782136"], ["updated_at", "2016-12-07 08:39:16.782136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.789443"], ["updated_at", "2016-12-07 08:39:16.789443"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.791785"], ["updated_at", "2016-12-07 08:39:16.791785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.800955"], ["updated_at", "2016-12-07 08:39:16.800955"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.802851"], ["updated_at", "2016-12-07 08:39:16.802851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9c4e3ab2-5ccf-4295-96d7-b060ec65431d' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.6ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9c4e3ab2-5ccf-4295-96d7-b060ec65431d"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.810351"], ["updated_at", "2016-12-07 08:39:16.810351"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9c4e3ab2-5ccf-4295-96d7-b060ec65431d', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.810351', "updated_at" = '2016-12-07 08:39:16.810351', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.814816', "updated_at" = '2016-12-07 08:39:16.815111', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9c4e3ab2-5ccf-4295-96d7-b060ec65431d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.825671"], ["updated_at", "2016-12-07 08:39:16.825671"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.827074"], ["updated_at", "2016-12-07 08:39:16.827074"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.828105"], ["updated_at", "2016-12-07 08:39:16.828105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.834480"], ["updated_at", "2016-12-07 08:39:16.834480"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.839558"], ["updated_at", "2016-12-07 08:39:16.839558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.851169"], ["updated_at", "2016-12-07 08:39:16.851169"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.853433"], ["updated_at", "2016-12-07 08:39:16.853433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e1f16465-815a-4cae-9d78-f3b2b726df93' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e1f16465-815a-4cae-9d78-f3b2b726df93"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.861648"], ["updated_at", "2016-12-07 08:39:16.861648"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e1f16465-815a-4cae-9d78-f3b2b726df93', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.861648', "updated_at" = '2016-12-07 08:39:16.861648', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.866107', "updated_at" = '2016-12-07 08:39:16.866414', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e1f16465-815a-4cae-9d78-f3b2b726df93' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.877120"], ["updated_at", "2016-12-07 08:39:16.877120"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.878470"], ["updated_at", "2016-12-07 08:39:16.878470"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.879540"], ["updated_at", "2016-12-07 08:39:16.879540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.885460"], ["updated_at", "2016-12-07 08:39:16.885460"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.890291"], ["updated_at", "2016-12-07 08:39:16.890291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:16.902482"], ["updated_at", "2016-12-07 08:39:16.902482"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:16.904584"], ["updated_at", "2016-12-07 08:39:16.904584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3aeaa2d1-a16b-4539-8b89-4c8543579d81' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3aeaa2d1-a16b-4539-8b89-4c8543579d81"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.912216"], ["updated_at", "2016-12-07 08:39:16.912216"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3aeaa2d1-a16b-4539-8b89-4c8543579d81', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.912216', "updated_at" = '2016-12-07 08:39:16.912216', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.917513', "updated_at" = '2016-12-07 08:39:16.917954', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3aeaa2d1-a16b-4539-8b89-4c8543579d81' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.929591"], ["updated_at", "2016-12-07 08:39:16.929591"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.932049"], ["updated_at", "2016-12-07 08:39:16.932049"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.933741"], ["updated_at", "2016-12-07 08:39:16.933741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.941671"], ["updated_at", "2016-12-07 08:39:16.941671"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.943998"], ["updated_at", "2016-12-07 08:39:16.943998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cb912801-c02b-4562-8c4f-84961746d5a0' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cb912801-c02b-4562-8c4f-84961746d5a0"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:16.952255"], ["updated_at", "2016-12-07 08:39:16.952255"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cb912801-c02b-4562-8c4f-84961746d5a0', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:16.952255', "updated_at" = '2016-12-07 08:39:16.952255', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:16.955674', "updated_at" = '2016-12-07 08:39:16.955887', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cb912801-c02b-4562-8c4f-84961746d5a0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.965581"], ["updated_at", "2016-12-07 08:39:16.965581"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.967956"], ["updated_at", "2016-12-07 08:39:16.967956"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.970143"], ["updated_at", "2016-12-07 08:39:16.970143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:16.977263"], ["updated_at", "2016-12-07 08:39:16.977263"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.978639"], ["updated_at", "2016-12-07 08:39:16.978639"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:16.979750"], ["updated_at", "2016-12-07 08:39:16.979750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:16.986065"], ["updated_at", "2016-12-07 08:39:16.986065"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:16.990841"], ["updated_at", "2016-12-07 08:39:16.990841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:39.700913"], ["updated_at", "2016-12-07 08:39:39.700913"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:39.716028"], ["updated_at", "2016-12-07 08:39:39.716028"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:39.717601"], ["updated_at", "2016-12-07 08:39:39.717601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (1.7ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:39.845600"], ["updated_at", "2016-12-07 08:39:39.845600"]] SQL (0.9ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:39.854859"], ["updated_at", "2016-12-07 08:39:39.854859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.6ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:39.883736"], ["updated_at", "2016-12-07 08:39:39.883736"]] SQL (1.0ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:39.891529"], ["updated_at", "2016-12-07 08:39:39.891529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.5ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1cb61aa1-5506-479c-bb48-d36ea1d3e0f3' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (1.9ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1cb61aa1-5506-479c-bb48-d36ea1d3e0f3"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:39.931673"], ["updated_at", "2016-12-07 08:39:39.931673"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1cb61aa1-5506-479c-bb48-d36ea1d3e0f3', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:39.931673', "updated_at" = '2016-12-07 08:39:39.931673', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:39.938164', "updated_at" = '2016-12-07 08:39:39.938438', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1cb61aa1-5506-479c-bb48-d36ea1d3e0f3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:39.961885"], ["updated_at", "2016-12-07 08:39:39.961885"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:39.963241"], ["updated_at", "2016-12-07 08:39:39.963241"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:39.964297"], ["updated_at", "2016-12-07 08:39:39.964297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:39.970042"], ["updated_at", "2016-12-07 08:39:39.970042"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:39.974357"], ["updated_at", "2016-12-07 08:39:39.974357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:39.984456"], ["updated_at", "2016-12-07 08:39:39.984456"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:39.986111"], ["updated_at", "2016-12-07 08:39:39.986111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '70990bcc-5529-4143-b8f9-f95658cc3b5c' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.9ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "70990bcc-5529-4143-b8f9-f95658cc3b5c"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:39.994439"], ["updated_at", "2016-12-07 08:39:39.994439"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '70990bcc-5529-4143-b8f9-f95658cc3b5c', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:39.994439', "updated_at" = '2016-12-07 08:39:39.994439', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.002776', "updated_at" = '2016-12-07 08:39:40.003350', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '70990bcc-5529-4143-b8f9-f95658cc3b5c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.015564"], ["updated_at", "2016-12-07 08:39:40.015564"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.017093"], ["updated_at", "2016-12-07 08:39:40.017093"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.018209"], ["updated_at", "2016-12-07 08:39:40.018209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.024222"], ["updated_at", "2016-12-07 08:39:40.024222"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.026262"], ["updated_at", "2016-12-07 08:39:40.026262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.032699"], ["updated_at", "2016-12-07 08:39:40.032699"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.034356"], ["updated_at", "2016-12-07 08:39:40.034356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '15210cb5-5b09-4143-9fb2-9abe69b06ba5' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "15210cb5-5b09-4143-9fb2-9abe69b06ba5"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.042306"], ["updated_at", "2016-12-07 08:39:40.042306"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.6ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '15210cb5-5b09-4143-9fb2-9abe69b06ba5', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.042306', "updated_at" = '2016-12-07 08:39:40.042306', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.047996', "updated_at" = '2016-12-07 08:39:40.048589', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '15210cb5-5b09-4143-9fb2-9abe69b06ba5' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.061396"], ["updated_at", "2016-12-07 08:39:40.061396"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.063527"], ["updated_at", "2016-12-07 08:39:40.063527"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.065175"], ["updated_at", "2016-12-07 08:39:40.065175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.074155"], ["updated_at", "2016-12-07 08:39:40.074155"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.077725"], ["updated_at", "2016-12-07 08:39:40.077725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.086467"], ["updated_at", "2016-12-07 08:39:40.086467"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.088329"], ["updated_at", "2016-12-07 08:39:40.088329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'd61c20f8-7f9f-4f30-b1af-63600946c18e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "d61c20f8-7f9f-4f30-b1af-63600946c18e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.098878"], ["updated_at", "2016-12-07 08:39:40.098878"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'd61c20f8-7f9f-4f30-b1af-63600946c18e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.098878', "updated_at" = '2016-12-07 08:39:40.098878', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.102842', "updated_at" = '2016-12-07 08:39:40.103108', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'd61c20f8-7f9f-4f30-b1af-63600946c18e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.114113"], ["updated_at", "2016-12-07 08:39:40.114113"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.117166"], ["updated_at", "2016-12-07 08:39:40.117166"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.119203"], ["updated_at", "2016-12-07 08:39:40.119203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.127053"], ["updated_at", "2016-12-07 08:39:40.127053"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.129397"], ["updated_at", "2016-12-07 08:39:40.129397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.138095"], ["updated_at", "2016-12-07 08:39:40.138095"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.140349"], ["updated_at", "2016-12-07 08:39:40.140349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '75712ea7-286a-46df-9a3a-ac7842b5724a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "75712ea7-286a-46df-9a3a-ac7842b5724a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.151234"], ["updated_at", "2016-12-07 08:39:40.151234"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '75712ea7-286a-46df-9a3a-ac7842b5724a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.151234', "updated_at" = '2016-12-07 08:39:40.151234', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.155569', "updated_at" = '2016-12-07 08:39:40.155869', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '75712ea7-286a-46df-9a3a-ac7842b5724a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.169242"], ["updated_at", "2016-12-07 08:39:40.169242"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.170825"], ["updated_at", "2016-12-07 08:39:40.170825"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.172102"], ["updated_at", "2016-12-07 08:39:40.172102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.178819"], ["updated_at", "2016-12-07 08:39:40.178819"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.180941"], ["updated_at", "2016-12-07 08:39:40.180941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.188076"], ["updated_at", "2016-12-07 08:39:40.188076"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.190105"], ["updated_at", "2016-12-07 08:39:40.190105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9c6af5ef-c004-47be-ae09-ab460bfde5ff' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9c6af5ef-c004-47be-ae09-ab460bfde5ff"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.200396"], ["updated_at", "2016-12-07 08:39:40.200396"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9c6af5ef-c004-47be-ae09-ab460bfde5ff', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.200396', "updated_at" = '2016-12-07 08:39:40.200396', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.204405', "updated_at" = '2016-12-07 08:39:40.204668', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9c6af5ef-c004-47be-ae09-ab460bfde5ff' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.215874"], ["updated_at", "2016-12-07 08:39:40.215874"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.218961"], ["updated_at", "2016-12-07 08:39:40.218961"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.220659"], ["updated_at", "2016-12-07 08:39:40.220659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.229403"], ["updated_at", "2016-12-07 08:39:40.229403"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.231281"], ["updated_at", "2016-12-07 08:39:40.231281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.237971"], ["updated_at", "2016-12-07 08:39:40.237971"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.239701"], ["updated_at", "2016-12-07 08:39:40.239701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b0b4d187-934e-4531-96d7-fb3bec4ba4ad' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b0b4d187-934e-4531-96d7-fb3bec4ba4ad"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.250639"], ["updated_at", "2016-12-07 08:39:40.250639"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b0b4d187-934e-4531-96d7-fb3bec4ba4ad', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.250639', "updated_at" = '2016-12-07 08:39:40.250639', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.254735', "updated_at" = '2016-12-07 08:39:40.254967', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b0b4d187-934e-4531-96d7-fb3bec4ba4ad' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.264183"], ["updated_at", "2016-12-07 08:39:40.264183"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.265964"], ["updated_at", "2016-12-07 08:39:40.265964"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.267406"], ["updated_at", "2016-12-07 08:39:40.267406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.275156"], ["updated_at", "2016-12-07 08:39:40.275156"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.278389"], ["updated_at", "2016-12-07 08:39:40.278389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.286892"], ["updated_at", "2016-12-07 08:39:40.286892"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.290240"], ["updated_at", "2016-12-07 08:39:40.290240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'd068453e-5e72-4364-8726-e02be8fb0a04' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "d068453e-5e72-4364-8726-e02be8fb0a04"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.301280"], ["updated_at", "2016-12-07 08:39:40.301280"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'd068453e-5e72-4364-8726-e02be8fb0a04', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.301280', "updated_at" = '2016-12-07 08:39:40.301280', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.304933', "updated_at" = '2016-12-07 08:39:40.305161', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'd068453e-5e72-4364-8726-e02be8fb0a04' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.316605"], ["updated_at", "2016-12-07 08:39:40.316605"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.319366"], ["updated_at", "2016-12-07 08:39:40.319366"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.321240"], ["updated_at", "2016-12-07 08:39:40.321240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.332678"], ["updated_at", "2016-12-07 08:39:40.332678"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.335607"], ["updated_at", "2016-12-07 08:39:40.335607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 08:39:40.343226"], ["updated_at", "2016-12-07 08:39:40.343226"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 08:39:40.345284"], ["updated_at", "2016-12-07 08:39:40.345284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3eb98e59-5bb9-41fa-971b-34a34df79283' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3eb98e59-5bb9-41fa-971b-34a34df79283"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.354491"], ["updated_at", "2016-12-07 08:39:40.354491"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3eb98e59-5bb9-41fa-971b-34a34df79283', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.354491', "updated_at" = '2016-12-07 08:39:40.354491', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.358421', "updated_at" = '2016-12-07 08:39:40.358677', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3eb98e59-5bb9-41fa-971b-34a34df79283' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.368487"], ["updated_at", "2016-12-07 08:39:40.368487"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.370044"], ["updated_at", "2016-12-07 08:39:40.370044"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.371085"], ["updated_at", "2016-12-07 08:39:40.371085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.378181"], ["updated_at", "2016-12-07 08:39:40.378181"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.382540"], ["updated_at", "2016-12-07 08:39:40.382540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '99f25d8d-38dc-4368-b6db-30bdec2151f4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "99f25d8d-38dc-4368-b6db-30bdec2151f4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 08:39:40.392357"], ["updated_at", "2016-12-07 08:39:40.392357"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '99f25d8d-38dc-4368-b6db-30bdec2151f4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 08:39:40.392357', "updated_at" = '2016-12-07 08:39:40.392357', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 08:39:40.397247', "updated_at" = '2016-12-07 08:39:40.397536', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '99f25d8d-38dc-4368-b6db-30bdec2151f4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.406475"], ["updated_at", "2016-12-07 08:39:40.406475"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.407821"], ["updated_at", "2016-12-07 08:39:40.407821"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.408933"], ["updated_at", "2016-12-07 08:39:40.408933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:39:40.413987"], ["updated_at", "2016-12-07 08:39:40.413987"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.415817"], ["updated_at", "2016-12-07 08:39:40.415817"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:39:40.417426"], ["updated_at", "2016-12-07 08:39:40.417426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 08:39:40.424690"], ["updated_at", "2016-12-07 08:39:40.424690"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 08:39:40.427658"], ["updated_at", "2016-12-07 08:39:40.427658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:40:12.937352"], ["updated_at", "2016-12-07 08:40:12.937352"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:40:12.951574"], ["updated_at", "2016-12-07 08:40:12.951574"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:40:12.953454"], ["updated_at", "2016-12-07 08:40:12.953454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:57:27.786070"], ["updated_at", "2016-12-07 08:57:27.786070"]] SQL (2.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:57:27.808136"], ["updated_at", "2016-12-07 08:57:27.808136"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:57:27.812187"], ["updated_at", "2016-12-07 08:57:27.812187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:57:27.832093"], ["updated_at", "2016-12-07 08:57:27.832093"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:57:27.833370"], ["updated_at", "2016-12-07 08:57:27.833370"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:57:27.834448"], ["updated_at", "2016-12-07 08:57:27.834448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:58:21.480663"], ["updated_at", "2016-12-07 08:58:21.480663"]] SQL (1.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:58:21.498399"], ["updated_at", "2016-12-07 08:58:21.498399"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:58:21.501484"], ["updated_at", "2016-12-07 08:58:21.501484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:58:21.521563"], ["updated_at", "2016-12-07 08:58:21.521563"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:58:21.522866"], ["updated_at", "2016-12-07 08:58:21.522866"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:58:21.523927"], ["updated_at", "2016-12-07 08:58:21.523927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:59:46.587123"], ["updated_at", "2016-12-07 08:59:46.587123"]] SQL (1.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:59:46.606206"], ["updated_at", "2016-12-07 08:59:46.606206"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:59:46.609733"], ["updated_at", "2016-12-07 08:59:46.609733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 08:59:46.636729"], ["updated_at", "2016-12-07 08:59:46.636729"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 08:59:46.638144"], ["updated_at", "2016-12-07 08:59:46.638144"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 08:59:46.639195"], ["updated_at", "2016-12-07 08:59:46.639195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:00:25.730598"], ["updated_at", "2016-12-07 09:00:25.730598"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:00:25.745081"], ["updated_at", "2016-12-07 09:00:25.745081"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:00:25.747067"], ["updated_at", "2016-12-07 09:00:25.747067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:00:25.772350"], ["updated_at", "2016-12-07 09:00:25.772350"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:00:25.773680"], ["updated_at", "2016-12-07 09:00:25.773680"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:00:25.774724"], ["updated_at", "2016-12-07 09:00:25.774724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:00:45.653980"], ["updated_at", "2016-12-07 09:00:45.653980"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:00:45.669030"], ["updated_at", "2016-12-07 09:00:45.669030"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:00:45.670691"], ["updated_at", "2016-12-07 09:00:45.670691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:00:45.691150"], ["updated_at", "2016-12-07 09:00:45.691150"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:00:45.692545"], ["updated_at", "2016-12-07 09:00:45.692545"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:00:45.693776"], ["updated_at", "2016-12-07 09:00:45.693776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:04:49.206183"], ["updated_at", "2016-12-07 09:04:49.206183"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:04:49.220509"], ["updated_at", "2016-12-07 09:04:49.220509"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:04:49.222340"], ["updated_at", "2016-12-07 09:04:49.222340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:04:49.242790"], ["updated_at", "2016-12-07 09:04:49.242790"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:04:49.244058"], ["updated_at", "2016-12-07 09:04:49.244058"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:04:49.245067"], ["updated_at", "2016-12-07 09:04:49.245067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:05:15.236670"], ["updated_at", "2016-12-07 09:05:15.236670"]] SQL (1.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:05:15.252540"], ["updated_at", "2016-12-07 09:05:15.252540"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:05:15.255531"], ["updated_at", "2016-12-07 09:05:15.255531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:05:15.275156"], ["updated_at", "2016-12-07 09:05:15.275156"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:05:15.276486"], ["updated_at", "2016-12-07 09:05:15.276486"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:05:15.277591"], ["updated_at", "2016-12-07 09:05:15.277591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:05:53.272266"], ["updated_at", "2016-12-07 09:05:53.272266"]] SQL (1.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.288273"], ["updated_at", "2016-12-07 09:05:53.288273"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.291721"], ["updated_at", "2016-12-07 09:05:53.291721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:05:53.312586"], ["updated_at", "2016-12-07 09:05:53.312586"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.313920"], ["updated_at", "2016-12-07 09:05:53.313920"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.315007"], ["updated_at", "2016-12-07 09:05:53.315007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:05:53.319101"], ["updated_at", "2016-12-07 09:05:53.319101"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.320263"], ["updated_at", "2016-12-07 09:05:53.320263"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:05:53.321489"], ["updated_at", "2016-12-07 09:05:53.321489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.094603"], ["updated_at", "2016-12-07 09:10:56.094603"]] SQL (1.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.110171"], ["updated_at", "2016-12-07 09:10:56.110171"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.113452"], ["updated_at", "2016-12-07 09:10:56.113452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.133890"], ["updated_at", "2016-12-07 09:10:56.133890"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.135232"], ["updated_at", "2016-12-07 09:10:56.135232"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.136394"], ["updated_at", "2016-12-07 09:10:56.136394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.140956"], ["updated_at", "2016-12-07 09:10:56.140956"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.142551"], ["updated_at", "2016-12-07 09:10:56.142551"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.144025"], ["updated_at", "2016-12-07 09:10:56.144025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.149488"], ["updated_at", "2016-12-07 09:10:56.149488"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.150974"], ["updated_at", "2016-12-07 09:10:56.150974"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.152080"], ["updated_at", "2016-12-07 09:10:56.152080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.158306"], ["updated_at", "2016-12-07 09:10:56.158306"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.159676"], ["updated_at", "2016-12-07 09:10:56.159676"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.160789"], ["updated_at", "2016-12-07 09:10:56.160789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:10:56.164885"], ["updated_at", "2016-12-07 09:10:56.164885"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.166443"], ["updated_at", "2016-12-07 09:10:56.166443"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:10:56.167461"], ["updated_at", "2016-12-07 09:10:56.167461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.322203"], ["updated_at", "2016-12-07 09:12:15.322203"]] SQL (1.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.337245"], ["updated_at", "2016-12-07 09:12:15.337245"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.340380"], ["updated_at", "2016-12-07 09:12:15.340380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.360266"], ["updated_at", "2016-12-07 09:12:15.360266"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.361625"], ["updated_at", "2016-12-07 09:12:15.361625"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.362643"], ["updated_at", "2016-12-07 09:12:15.362643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.366811"], ["updated_at", "2016-12-07 09:12:15.366811"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.367940"], ["updated_at", "2016-12-07 09:12:15.367940"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.369028"], ["updated_at", "2016-12-07 09:12:15.369028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.373418"], ["updated_at", "2016-12-07 09:12:15.373418"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.374632"], ["updated_at", "2016-12-07 09:12:15.374632"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.375599"], ["updated_at", "2016-12-07 09:12:15.375599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.379889"], ["updated_at", "2016-12-07 09:12:15.379889"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.381045"], ["updated_at", "2016-12-07 09:12:15.381045"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.382036"], ["updated_at", "2016-12-07 09:12:15.382036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:12:15.387506"], ["updated_at", "2016-12-07 09:12:15.387506"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.388960"], ["updated_at", "2016-12-07 09:12:15.388960"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:12:15.390838"], ["updated_at", "2016-12-07 09:12:15.390838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.336607"], ["updated_at", "2016-12-07 09:13:41.336607"]] SQL (0.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.351880"], ["updated_at", "2016-12-07 09:13:41.351880"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.355590"], ["updated_at", "2016-12-07 09:13:41.355590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.380639"], ["updated_at", "2016-12-07 09:13:41.380639"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.383072"], ["updated_at", "2016-12-07 09:13:41.383072"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.384997"], ["updated_at", "2016-12-07 09:13:41.384997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.391038"], ["updated_at", "2016-12-07 09:13:41.391038"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.392368"], ["updated_at", "2016-12-07 09:13:41.392368"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.393475"], ["updated_at", "2016-12-07 09:13:41.393475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.426520"], ["updated_at", "2016-12-07 09:13:41.426520"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.427969"], ["updated_at", "2016-12-07 09:13:41.427969"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.429052"], ["updated_at", "2016-12-07 09:13:41.429052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.434009"], ["updated_at", "2016-12-07 09:13:41.434009"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.435894"], ["updated_at", "2016-12-07 09:13:41.435894"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.437104"], ["updated_at", "2016-12-07 09:13:41.437104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.442938"], ["updated_at", "2016-12-07 09:13:41.442938"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.444316"], ["updated_at", "2016-12-07 09:13:41.444316"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.445587"], ["updated_at", "2016-12-07 09:13:41.445587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:13:41.450868"], ["updated_at", "2016-12-07 09:13:41.450868"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.452592"], ["updated_at", "2016-12-07 09:13:41.452592"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:13:41.453946"], ["updated_at", "2016-12-07 09:13:41.453946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.020030"], ["updated_at", "2016-12-07 09:14:05.020030"]] SQL (1.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.038787"], ["updated_at", "2016-12-07 09:14:05.038787"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.042026"], ["updated_at", "2016-12-07 09:14:05.042026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.062669"], ["updated_at", "2016-12-07 09:14:05.062669"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.064008"], ["updated_at", "2016-12-07 09:14:05.064008"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.065067"], ["updated_at", "2016-12-07 09:14:05.065067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.069121"], ["updated_at", "2016-12-07 09:14:05.069121"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.070298"], ["updated_at", "2016-12-07 09:14:05.070298"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.071649"], ["updated_at", "2016-12-07 09:14:05.071649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.076806"], ["updated_at", "2016-12-07 09:14:05.076806"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.078134"], ["updated_at", "2016-12-07 09:14:05.078134"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.079198"], ["updated_at", "2016-12-07 09:14:05.079198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.083270"], ["updated_at", "2016-12-07 09:14:05.083270"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.084421"], ["updated_at", "2016-12-07 09:14:05.084421"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.085589"], ["updated_at", "2016-12-07 09:14:05.085589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.090606"], ["updated_at", "2016-12-07 09:14:05.090606"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.092056"], ["updated_at", "2016-12-07 09:14:05.092056"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.093149"], ["updated_at", "2016-12-07 09:14:05.093149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:05.097601"], ["updated_at", "2016-12-07 09:14:05.097601"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.098830"], ["updated_at", "2016-12-07 09:14:05.098830"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:05.100193"], ["updated_at", "2016-12-07 09:14:05.100193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.122728"], ["updated_at", "2016-12-07 09:14:35.122728"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.143692"], ["updated_at", "2016-12-07 09:14:35.143692"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.145099"], ["updated_at", "2016-12-07 09:14:35.145099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.166558"], ["updated_at", "2016-12-07 09:14:35.166558"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.169045"], ["updated_at", "2016-12-07 09:14:35.169045"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.170770"], ["updated_at", "2016-12-07 09:14:35.170770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.176710"], ["updated_at", "2016-12-07 09:14:35.176710"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.178202"], ["updated_at", "2016-12-07 09:14:35.178202"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.179331"], ["updated_at", "2016-12-07 09:14:35.179331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.184504"], ["updated_at", "2016-12-07 09:14:35.184504"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.185988"], ["updated_at", "2016-12-07 09:14:35.185988"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.187167"], ["updated_at", "2016-12-07 09:14:35.187167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.191457"], ["updated_at", "2016-12-07 09:14:35.191457"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.192638"], ["updated_at", "2016-12-07 09:14:35.192638"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.193636"], ["updated_at", "2016-12-07 09:14:35.193636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.198341"], ["updated_at", "2016-12-07 09:14:35.198341"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.199666"], ["updated_at", "2016-12-07 09:14:35.199666"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.200731"], ["updated_at", "2016-12-07 09:14:35.200731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:35.207092"], ["updated_at", "2016-12-07 09:14:35.207092"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.209217"], ["updated_at", "2016-12-07 09:14:35.209217"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:35.210455"], ["updated_at", "2016-12-07 09:14:35.210455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.600187"], ["updated_at", "2016-12-07 09:14:59.600187"]] SQL (1.8ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.615275"], ["updated_at", "2016-12-07 09:14:59.615275"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.618921"], ["updated_at", "2016-12-07 09:14:59.618921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.642831"], ["updated_at", "2016-12-07 09:14:59.642831"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.645029"], ["updated_at", "2016-12-07 09:14:59.645029"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.646686"], ["updated_at", "2016-12-07 09:14:59.646686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.652041"], ["updated_at", "2016-12-07 09:14:59.652041"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.653236"], ["updated_at", "2016-12-07 09:14:59.653236"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.654246"], ["updated_at", "2016-12-07 09:14:59.654246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.689165"], ["updated_at", "2016-12-07 09:14:59.689165"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.690646"], ["updated_at", "2016-12-07 09:14:59.690646"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.691681"], ["updated_at", "2016-12-07 09:14:59.691681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.695985"], ["updated_at", "2016-12-07 09:14:59.695985"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.697493"], ["updated_at", "2016-12-07 09:14:59.697493"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.698617"], ["updated_at", "2016-12-07 09:14:59.698617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.702982"], ["updated_at", "2016-12-07 09:14:59.702982"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.704169"], ["updated_at", "2016-12-07 09:14:59.704169"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.705173"], ["updated_at", "2016-12-07 09:14:59.705173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:14:59.709311"], ["updated_at", "2016-12-07 09:14:59.709311"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.710665"], ["updated_at", "2016-12-07 09:14:59.710665"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:14:59.712344"], ["updated_at", "2016-12-07 09:14:59.712344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.530641"], ["updated_at", "2016-12-07 09:15:15.530641"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.546283"], ["updated_at", "2016-12-07 09:15:15.546283"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.547991"], ["updated_at", "2016-12-07 09:15:15.547991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.568903"], ["updated_at", "2016-12-07 09:15:15.568903"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.570431"], ["updated_at", "2016-12-07 09:15:15.570431"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.571617"], ["updated_at", "2016-12-07 09:15:15.571617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.576305"], ["updated_at", "2016-12-07 09:15:15.576305"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.578171"], ["updated_at", "2016-12-07 09:15:15.578171"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.579429"], ["updated_at", "2016-12-07 09:15:15.579429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.585154"], ["updated_at", "2016-12-07 09:15:15.585154"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.586623"], ["updated_at", "2016-12-07 09:15:15.586623"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.587705"], ["updated_at", "2016-12-07 09:15:15.587705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.592313"], ["updated_at", "2016-12-07 09:15:15.592313"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.593912"], ["updated_at", "2016-12-07 09:15:15.593912"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.595556"], ["updated_at", "2016-12-07 09:15:15.595556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.600878"], ["updated_at", "2016-12-07 09:15:15.600878"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.602437"], ["updated_at", "2016-12-07 09:15:15.602437"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.603622"], ["updated_at", "2016-12-07 09:15:15.603622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:15:15.608783"], ["updated_at", "2016-12-07 09:15:15.608783"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.610622"], ["updated_at", "2016-12-07 09:15:15.610622"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:15:15.611865"], ["updated_at", "2016-12-07 09:15:15.611865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.696764"], ["updated_at", "2016-12-07 09:17:28.696764"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.714554"], ["updated_at", "2016-12-07 09:17:28.714554"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.716011"], ["updated_at", "2016-12-07 09:17:28.716011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.736668"], ["updated_at", "2016-12-07 09:17:28.736668"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.739093"], ["updated_at", "2016-12-07 09:17:28.739093"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.740708"], ["updated_at", "2016-12-07 09:17:28.740708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.746751"], ["updated_at", "2016-12-07 09:17:28.746751"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.748016"], ["updated_at", "2016-12-07 09:17:28.748016"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.749021"], ["updated_at", "2016-12-07 09:17:28.749021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.753784"], ["updated_at", "2016-12-07 09:17:28.753784"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.754920"], ["updated_at", "2016-12-07 09:17:28.754920"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.756227"], ["updated_at", "2016-12-07 09:17:28.756227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.760526"], ["updated_at", "2016-12-07 09:17:28.760526"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.761673"], ["updated_at", "2016-12-07 09:17:28.761673"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.762710"], ["updated_at", "2016-12-07 09:17:28.762710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.766824"], ["updated_at", "2016-12-07 09:17:28.766824"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.768053"], ["updated_at", "2016-12-07 09:17:28.768053"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.769122"], ["updated_at", "2016-12-07 09:17:28.769122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.774399"], ["updated_at", "2016-12-07 09:17:28.774399"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.775858"], ["updated_at", "2016-12-07 09:17:28.775858"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.776966"], ["updated_at", "2016-12-07 09:17:28.776966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:17:28.782618"], ["updated_at", "2016-12-07 09:17:28.782618"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.784231"], ["updated_at", "2016-12-07 09:17:28.784231"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:17:28.785362"], ["updated_at", "2016-12-07 09:17:28.785362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:44.942339"], ["updated_at", "2016-12-07 09:19:44.942339"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.957926"], ["updated_at", "2016-12-07 09:19:44.957926"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.959904"], ["updated_at", "2016-12-07 09:19:44.959904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:44.984947"], ["updated_at", "2016-12-07 09:19:44.984947"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.986728"], ["updated_at", "2016-12-07 09:19:44.986728"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.988003"], ["updated_at", "2016-12-07 09:19:44.988003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:44.991931"], ["updated_at", "2016-12-07 09:19:44.991931"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.993291"], ["updated_at", "2016-12-07 09:19:44.993291"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:44.994409"], ["updated_at", "2016-12-07 09:19:44.994409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:44.999560"], ["updated_at", "2016-12-07 09:19:44.999560"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.000777"], ["updated_at", "2016-12-07 09:19:45.000777"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.001910"], ["updated_at", "2016-12-07 09:19:45.001910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:45.006128"], ["updated_at", "2016-12-07 09:19:45.006128"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.007298"], ["updated_at", "2016-12-07 09:19:45.007298"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.008271"], ["updated_at", "2016-12-07 09:19:45.008271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:45.012823"], ["updated_at", "2016-12-07 09:19:45.012823"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.013951"], ["updated_at", "2016-12-07 09:19:45.013951"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.014937"], ["updated_at", "2016-12-07 09:19:45.014937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:45.019590"], ["updated_at", "2016-12-07 09:19:45.019590"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.020914"], ["updated_at", "2016-12-07 09:19:45.020914"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.022125"], ["updated_at", "2016-12-07 09:19:45.022125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:19:45.026916"], ["updated_at", "2016-12-07 09:19:45.026916"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.028540"], ["updated_at", "2016-12-07 09:19:45.028540"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:19:45.029806"], ["updated_at", "2016-12-07 09:19:45.029806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.458010"], ["updated_at", "2016-12-07 09:22:02.458010"]] SQL (0.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.473210"], ["updated_at", "2016-12-07 09:22:02.473210"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.476958"], ["updated_at", "2016-12-07 09:22:02.476958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.504462"], ["updated_at", "2016-12-07 09:22:02.504462"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.506976"], ["updated_at", "2016-12-07 09:22:02.506976"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.508536"], ["updated_at", "2016-12-07 09:22:02.508536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.513362"], ["updated_at", "2016-12-07 09:22:02.513362"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.514711"], ["updated_at", "2016-12-07 09:22:02.514711"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.515899"], ["updated_at", "2016-12-07 09:22:02.515899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.522692"], ["updated_at", "2016-12-07 09:22:02.522692"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.524437"], ["updated_at", "2016-12-07 09:22:02.524437"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.525543"], ["updated_at", "2016-12-07 09:22:02.525543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.530044"], ["updated_at", "2016-12-07 09:22:02.530044"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.531234"], ["updated_at", "2016-12-07 09:22:02.531234"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.532292"], ["updated_at", "2016-12-07 09:22:02.532292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.568376"], ["updated_at", "2016-12-07 09:22:02.568376"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.570116"], ["updated_at", "2016-12-07 09:22:02.570116"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.571257"], ["updated_at", "2016-12-07 09:22:02.571257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.577170"], ["updated_at", "2016-12-07 09:22:02.577170"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.578538"], ["updated_at", "2016-12-07 09:22:02.578538"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.579633"], ["updated_at", "2016-12-07 09:22:02.579633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.584183"], ["updated_at", "2016-12-07 09:22:02.584183"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.585809"], ["updated_at", "2016-12-07 09:22:02.585809"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.587047"], ["updated_at", "2016-12-07 09:22:02.587047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:02.592308"], ["updated_at", "2016-12-07 09:22:02.592308"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.593673"], ["updated_at", "2016-12-07 09:22:02.593673"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:02.594705"], ["updated_at", "2016-12-07 09:22:02.594705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.471497"], ["updated_at", "2016-12-07 09:22:23.471497"]] SQL (1.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.486870"], ["updated_at", "2016-12-07 09:22:23.486870"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.490089"], ["updated_at", "2016-12-07 09:22:23.490089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.510047"], ["updated_at", "2016-12-07 09:22:23.510047"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.511366"], ["updated_at", "2016-12-07 09:22:23.511366"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.512454"], ["updated_at", "2016-12-07 09:22:23.512454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.516409"], ["updated_at", "2016-12-07 09:22:23.516409"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.518497"], ["updated_at", "2016-12-07 09:22:23.518497"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.520132"], ["updated_at", "2016-12-07 09:22:23.520132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.526766"], ["updated_at", "2016-12-07 09:22:23.526766"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.528196"], ["updated_at", "2016-12-07 09:22:23.528196"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.529888"], ["updated_at", "2016-12-07 09:22:23.529888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.534872"], ["updated_at", "2016-12-07 09:22:23.534872"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.536546"], ["updated_at", "2016-12-07 09:22:23.536546"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.537702"], ["updated_at", "2016-12-07 09:22:23.537702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.542377"], ["updated_at", "2016-12-07 09:22:23.542377"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.543763"], ["updated_at", "2016-12-07 09:22:23.543763"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.544934"], ["updated_at", "2016-12-07 09:22:23.544934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.550527"], ["updated_at", "2016-12-07 09:22:23.550527"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.551879"], ["updated_at", "2016-12-07 09:22:23.551879"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.552941"], ["updated_at", "2016-12-07 09:22:23.552941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.557344"], ["updated_at", "2016-12-07 09:22:23.557344"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.558568"], ["updated_at", "2016-12-07 09:22:23.558568"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.559896"], ["updated_at", "2016-12-07 09:22:23.559896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:22:23.564334"], ["updated_at", "2016-12-07 09:22:23.564334"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.565553"], ["updated_at", "2016-12-07 09:22:23.565553"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:22:23.566555"], ["updated_at", "2016-12-07 09:22:23.566555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.263671"], ["updated_at", "2016-12-07 09:23:22.263671"]] SQL (0.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.278352"], ["updated_at", "2016-12-07 09:23:22.278352"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.282119"], ["updated_at", "2016-12-07 09:23:22.282119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.309367"], ["updated_at", "2016-12-07 09:23:22.309367"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.310659"], ["updated_at", "2016-12-07 09:23:22.310659"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.311697"], ["updated_at", "2016-12-07 09:23:22.311697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.315924"], ["updated_at", "2016-12-07 09:23:22.315924"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.317074"], ["updated_at", "2016-12-07 09:23:22.317074"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.318228"], ["updated_at", "2016-12-07 09:23:22.318228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.323704"], ["updated_at", "2016-12-07 09:23:22.323704"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.325026"], ["updated_at", "2016-12-07 09:23:22.325026"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.326047"], ["updated_at", "2016-12-07 09:23:22.326047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.329988"], ["updated_at", "2016-12-07 09:23:22.329988"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.331136"], ["updated_at", "2016-12-07 09:23:22.331136"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.332112"], ["updated_at", "2016-12-07 09:23:22.332112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.336994"], ["updated_at", "2016-12-07 09:23:22.336994"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.338229"], ["updated_at", "2016-12-07 09:23:22.338229"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.339297"], ["updated_at", "2016-12-07 09:23:22.339297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.343449"], ["updated_at", "2016-12-07 09:23:22.343449"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.344893"], ["updated_at", "2016-12-07 09:23:22.344893"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.346296"], ["updated_at", "2016-12-07 09:23:22.346296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.352375"], ["updated_at", "2016-12-07 09:23:22.352375"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.354021"], ["updated_at", "2016-12-07 09:23:22.354021"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.355446"], ["updated_at", "2016-12-07 09:23:22.355446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:22.360687"], ["updated_at", "2016-12-07 09:23:22.360687"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.362363"], ["updated_at", "2016-12-07 09:23:22.362363"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:22.363512"], ["updated_at", "2016-12-07 09:23:22.363512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.683589"], ["updated_at", "2016-12-07 09:23:34.683589"]] SQL (1.8ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.702506"], ["updated_at", "2016-12-07 09:23:34.702506"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.705870"], ["updated_at", "2016-12-07 09:23:34.705870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.726654"], ["updated_at", "2016-12-07 09:23:34.726654"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.728004"], ["updated_at", "2016-12-07 09:23:34.728004"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.729023"], ["updated_at", "2016-12-07 09:23:34.729023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.733021"], ["updated_at", "2016-12-07 09:23:34.733021"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.734169"], ["updated_at", "2016-12-07 09:23:34.734169"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.735249"], ["updated_at", "2016-12-07 09:23:34.735249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.740519"], ["updated_at", "2016-12-07 09:23:34.740519"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.741714"], ["updated_at", "2016-12-07 09:23:34.741714"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.742676"], ["updated_at", "2016-12-07 09:23:34.742676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.746490"], ["updated_at", "2016-12-07 09:23:34.746490"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.747623"], ["updated_at", "2016-12-07 09:23:34.747623"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.748641"], ["updated_at", "2016-12-07 09:23:34.748641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.783378"], ["updated_at", "2016-12-07 09:23:34.783378"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.785570"], ["updated_at", "2016-12-07 09:23:34.785570"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.787919"], ["updated_at", "2016-12-07 09:23:34.787919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.794403"], ["updated_at", "2016-12-07 09:23:34.794403"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.795728"], ["updated_at", "2016-12-07 09:23:34.795728"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.796809"], ["updated_at", "2016-12-07 09:23:34.796809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.800906"], ["updated_at", "2016-12-07 09:23:34.800906"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.802089"], ["updated_at", "2016-12-07 09:23:34.802089"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.803163"], ["updated_at", "2016-12-07 09:23:34.803163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:34.810740"], ["updated_at", "2016-12-07 09:23:34.810740"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.812270"], ["updated_at", "2016-12-07 09:23:34.812270"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:34.813435"], ["updated_at", "2016-12-07 09:23:34.813435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.163694"], ["updated_at", "2016-12-07 09:23:59.163694"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.177013"], ["updated_at", "2016-12-07 09:23:59.177013"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.179393"], ["updated_at", "2016-12-07 09:23:59.179393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.202504"], ["updated_at", "2016-12-07 09:23:59.202504"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.203996"], ["updated_at", "2016-12-07 09:23:59.203996"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.205156"], ["updated_at", "2016-12-07 09:23:59.205156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.209826"], ["updated_at", "2016-12-07 09:23:59.209826"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.211536"], ["updated_at", "2016-12-07 09:23:59.211536"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.212945"], ["updated_at", "2016-12-07 09:23:59.212945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.218818"], ["updated_at", "2016-12-07 09:23:59.218818"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.220206"], ["updated_at", "2016-12-07 09:23:59.220206"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.221371"], ["updated_at", "2016-12-07 09:23:59.221371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.226614"], ["updated_at", "2016-12-07 09:23:59.226614"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.228570"], ["updated_at", "2016-12-07 09:23:59.228570"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.229885"], ["updated_at", "2016-12-07 09:23:59.229885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.235648"], ["updated_at", "2016-12-07 09:23:59.235648"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.237003"], ["updated_at", "2016-12-07 09:23:59.237003"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.238106"], ["updated_at", "2016-12-07 09:23:59.238106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.243181"], ["updated_at", "2016-12-07 09:23:59.243181"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.245039"], ["updated_at", "2016-12-07 09:23:59.245039"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.246374"], ["updated_at", "2016-12-07 09:23:59.246374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.251186"], ["updated_at", "2016-12-07 09:23:59.251186"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.252827"], ["updated_at", "2016-12-07 09:23:59.252827"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.254010"], ["updated_at", "2016-12-07 09:23:59.254010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:23:59.258386"], ["updated_at", "2016-12-07 09:23:59.258386"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.259713"], ["updated_at", "2016-12-07 09:23:59.259713"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:23:59.260765"], ["updated_at", "2016-12-07 09:23:59.260765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.841972"], ["updated_at", "2016-12-07 09:26:51.841972"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.862376"], ["updated_at", "2016-12-07 09:26:51.862376"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.864035"], ["updated_at", "2016-12-07 09:26:51.864035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.885406"], ["updated_at", "2016-12-07 09:26:51.885406"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.887764"], ["updated_at", "2016-12-07 09:26:51.887764"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.889512"], ["updated_at", "2016-12-07 09:26:51.889512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.896303"], ["updated_at", "2016-12-07 09:26:51.896303"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.897911"], ["updated_at", "2016-12-07 09:26:51.897911"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.899095"], ["updated_at", "2016-12-07 09:26:51.899095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.905798"], ["updated_at", "2016-12-07 09:26:51.905798"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.907228"], ["updated_at", "2016-12-07 09:26:51.907228"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.908338"], ["updated_at", "2016-12-07 09:26:51.908338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.912351"], ["updated_at", "2016-12-07 09:26:51.912351"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.913500"], ["updated_at", "2016-12-07 09:26:51.913500"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.914883"], ["updated_at", "2016-12-07 09:26:51.914883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.920603"], ["updated_at", "2016-12-07 09:26:51.920603"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.922039"], ["updated_at", "2016-12-07 09:26:51.922039"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.923145"], ["updated_at", "2016-12-07 09:26:51.923145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.955823"], ["updated_at", "2016-12-07 09:26:51.955823"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.957447"], ["updated_at", "2016-12-07 09:26:51.957447"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.958567"], ["updated_at", "2016-12-07 09:26:51.958567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.963057"], ["updated_at", "2016-12-07 09:26:51.963057"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.964675"], ["updated_at", "2016-12-07 09:26:51.964675"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.965936"], ["updated_at", "2016-12-07 09:26:51.965936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.973135"], ["updated_at", "2016-12-07 09:26:51.973135"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.975866"], ["updated_at", "2016-12-07 09:26:51.975866"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.977917"], ["updated_at", "2016-12-07 09:26:51.977917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:26:51.985241"], ["updated_at", "2016-12-07 09:26:51.985241"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.987734"], ["updated_at", "2016-12-07 09:26:51.987734"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:26:51.989554"], ["updated_at", "2016-12-07 09:26:51.989554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.720738"], ["updated_at", "2016-12-07 09:29:48.720738"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.736837"], ["updated_at", "2016-12-07 09:29:48.736837"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.738394"], ["updated_at", "2016-12-07 09:29:48.738394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.758151"], ["updated_at", "2016-12-07 09:29:48.758151"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.759524"], ["updated_at", "2016-12-07 09:29:48.759524"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.760626"], ["updated_at", "2016-12-07 09:29:48.760626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.764866"], ["updated_at", "2016-12-07 09:29:48.764866"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.766132"], ["updated_at", "2016-12-07 09:29:48.766132"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.767485"], ["updated_at", "2016-12-07 09:29:48.767485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.773113"], ["updated_at", "2016-12-07 09:29:48.773113"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.774382"], ["updated_at", "2016-12-07 09:29:48.774382"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.775398"], ["updated_at", "2016-12-07 09:29:48.775398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.779319"], ["updated_at", "2016-12-07 09:29:48.779319"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.780483"], ["updated_at", "2016-12-07 09:29:48.780483"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.781588"], ["updated_at", "2016-12-07 09:29:48.781588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.786277"], ["updated_at", "2016-12-07 09:29:48.786277"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.787556"], ["updated_at", "2016-12-07 09:29:48.787556"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.788649"], ["updated_at", "2016-12-07 09:29:48.788649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.822264"], ["updated_at", "2016-12-07 09:29:48.822264"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.823749"], ["updated_at", "2016-12-07 09:29:48.823749"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.824891"], ["updated_at", "2016-12-07 09:29:48.824891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.829207"], ["updated_at", "2016-12-07 09:29:48.829207"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.830578"], ["updated_at", "2016-12-07 09:29:48.830578"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.831817"], ["updated_at", "2016-12-07 09:29:48.831817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.836561"], ["updated_at", "2016-12-07 09:29:48.836561"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.837851"], ["updated_at", "2016-12-07 09:29:48.837851"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.838923"], ["updated_at", "2016-12-07 09:29:48.838923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:29:48.843267"], ["updated_at", "2016-12-07 09:29:48.843267"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.844530"], ["updated_at", "2016-12-07 09:29:48.844530"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:29:48.845799"], ["updated_at", "2016-12-07 09:29:48.845799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.693798"], ["updated_at", "2016-12-07 09:30:08.693798"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.708416"], ["updated_at", "2016-12-07 09:30:08.708416"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.710074"], ["updated_at", "2016-12-07 09:30:08.710074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.731425"], ["updated_at", "2016-12-07 09:30:08.731425"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.733906"], ["updated_at", "2016-12-07 09:30:08.733906"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.735577"], ["updated_at", "2016-12-07 09:30:08.735577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.742365"], ["updated_at", "2016-12-07 09:30:08.742365"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.743913"], ["updated_at", "2016-12-07 09:30:08.743913"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.745018"], ["updated_at", "2016-12-07 09:30:08.745018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.751618"], ["updated_at", "2016-12-07 09:30:08.751618"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.753020"], ["updated_at", "2016-12-07 09:30:08.753020"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.754067"], ["updated_at", "2016-12-07 09:30:08.754067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.758222"], ["updated_at", "2016-12-07 09:30:08.758222"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.759400"], ["updated_at", "2016-12-07 09:30:08.759400"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.760431"], ["updated_at", "2016-12-07 09:30:08.760431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.765458"], ["updated_at", "2016-12-07 09:30:08.765458"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.767584"], ["updated_at", "2016-12-07 09:30:08.767584"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.768655"], ["updated_at", "2016-12-07 09:30:08.768655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.773224"], ["updated_at", "2016-12-07 09:30:08.773224"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.774828"], ["updated_at", "2016-12-07 09:30:08.774828"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.775972"], ["updated_at", "2016-12-07 09:30:08.775972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.780186"], ["updated_at", "2016-12-07 09:30:08.780186"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.781398"], ["updated_at", "2016-12-07 09:30:08.781398"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.782476"], ["updated_at", "2016-12-07 09:30:08.782476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.788682"], ["updated_at", "2016-12-07 09:30:08.788682"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.791223"], ["updated_at", "2016-12-07 09:30:08.791223"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.793135"], ["updated_at", "2016-12-07 09:30:08.793135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:30:08.800507"], ["updated_at", "2016-12-07 09:30:08.800507"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.802091"], ["updated_at", "2016-12-07 09:30:08.802091"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:30:08.803213"], ["updated_at", "2016-12-07 09:30:08.803213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.066008"], ["updated_at", "2016-12-07 09:33:46.066008"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.081769"], ["updated_at", "2016-12-07 09:33:46.081769"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.083447"], ["updated_at", "2016-12-07 09:33:46.083447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.108173"], ["updated_at", "2016-12-07 09:33:46.108173"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.110068"], ["updated_at", "2016-12-07 09:33:46.110068"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.111496"], ["updated_at", "2016-12-07 09:33:46.111496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.115601"], ["updated_at", "2016-12-07 09:33:46.115601"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.117003"], ["updated_at", "2016-12-07 09:33:46.117003"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.118104"], ["updated_at", "2016-12-07 09:33:46.118104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.123320"], ["updated_at", "2016-12-07 09:33:46.123320"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.124532"], ["updated_at", "2016-12-07 09:33:46.124532"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.125643"], ["updated_at", "2016-12-07 09:33:46.125643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.130391"], ["updated_at", "2016-12-07 09:33:46.130391"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.131724"], ["updated_at", "2016-12-07 09:33:46.131724"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.132701"], ["updated_at", "2016-12-07 09:33:46.132701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.139089"], ["updated_at", "2016-12-07 09:33:46.139089"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.141183"], ["updated_at", "2016-12-07 09:33:46.141183"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.143053"], ["updated_at", "2016-12-07 09:33:46.143053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.149056"], ["updated_at", "2016-12-07 09:33:46.149056"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.150257"], ["updated_at", "2016-12-07 09:33:46.150257"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.151335"], ["updated_at", "2016-12-07 09:33:46.151335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.185683"], ["updated_at", "2016-12-07 09:33:46.185683"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.187168"], ["updated_at", "2016-12-07 09:33:46.187168"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.188318"], ["updated_at", "2016-12-07 09:33:46.188318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.192656"], ["updated_at", "2016-12-07 09:33:46.192656"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.193977"], ["updated_at", "2016-12-07 09:33:46.193977"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.195259"], ["updated_at", "2016-12-07 09:33:46.195259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.199838"], ["updated_at", "2016-12-07 09:33:46.199838"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.201057"], ["updated_at", "2016-12-07 09:33:46.201057"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.202062"], ["updated_at", "2016-12-07 09:33:46.202062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:33:46.207218"], ["updated_at", "2016-12-07 09:33:46.207218"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.209610"], ["updated_at", "2016-12-07 09:33:46.209610"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:33:46.211003"], ["updated_at", "2016-12-07 09:33:46.211003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.384918"], ["updated_at", "2016-12-07 09:34:06.384918"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.399297"], ["updated_at", "2016-12-07 09:34:06.399297"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.401884"], ["updated_at", "2016-12-07 09:34:06.401884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.425753"], ["updated_at", "2016-12-07 09:34:06.425753"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.427102"], ["updated_at", "2016-12-07 09:34:06.427102"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.428164"], ["updated_at", "2016-12-07 09:34:06.428164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.432324"], ["updated_at", "2016-12-07 09:34:06.432324"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.433504"], ["updated_at", "2016-12-07 09:34:06.433504"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.434720"], ["updated_at", "2016-12-07 09:34:06.434720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.440126"], ["updated_at", "2016-12-07 09:34:06.440126"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.441337"], ["updated_at", "2016-12-07 09:34:06.441337"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.442394"], ["updated_at", "2016-12-07 09:34:06.442394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.446674"], ["updated_at", "2016-12-07 09:34:06.446674"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.448259"], ["updated_at", "2016-12-07 09:34:06.448259"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.449558"], ["updated_at", "2016-12-07 09:34:06.449558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.455410"], ["updated_at", "2016-12-07 09:34:06.455410"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.456737"], ["updated_at", "2016-12-07 09:34:06.456737"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.457754"], ["updated_at", "2016-12-07 09:34:06.457754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.461812"], ["updated_at", "2016-12-07 09:34:06.461812"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.462926"], ["updated_at", "2016-12-07 09:34:06.462926"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.464277"], ["updated_at", "2016-12-07 09:34:06.464277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.471173"], ["updated_at", "2016-12-07 09:34:06.471173"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.472882"], ["updated_at", "2016-12-07 09:34:06.472882"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.474258"], ["updated_at", "2016-12-07 09:34:06.474258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.479163"], ["updated_at", "2016-12-07 09:34:06.479163"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.480705"], ["updated_at", "2016-12-07 09:34:06.480705"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.481762"], ["updated_at", "2016-12-07 09:34:06.481762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.486436"], ["updated_at", "2016-12-07 09:34:06.486436"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.487812"], ["updated_at", "2016-12-07 09:34:06.487812"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.489116"], ["updated_at", "2016-12-07 09:34:06.489116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:06.493698"], ["updated_at", "2016-12-07 09:34:06.493698"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.494983"], ["updated_at", "2016-12-07 09:34:06.494983"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:06.496232"], ["updated_at", "2016-12-07 09:34:06.496232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.865872"], ["updated_at", "2016-12-07 09:34:44.865872"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.880987"], ["updated_at", "2016-12-07 09:34:44.880987"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.882545"], ["updated_at", "2016-12-07 09:34:44.882545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.903066"], ["updated_at", "2016-12-07 09:34:44.903066"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.904509"], ["updated_at", "2016-12-07 09:34:44.904509"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.905610"], ["updated_at", "2016-12-07 09:34:44.905610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.910116"], ["updated_at", "2016-12-07 09:34:44.910116"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.912350"], ["updated_at", "2016-12-07 09:34:44.912350"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.913561"], ["updated_at", "2016-12-07 09:34:44.913561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.918942"], ["updated_at", "2016-12-07 09:34:44.918942"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.920211"], ["updated_at", "2016-12-07 09:34:44.920211"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.921274"], ["updated_at", "2016-12-07 09:34:44.921274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.926785"], ["updated_at", "2016-12-07 09:34:44.926785"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.928077"], ["updated_at", "2016-12-07 09:34:44.928077"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.929144"], ["updated_at", "2016-12-07 09:34:44.929144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.933962"], ["updated_at", "2016-12-07 09:34:44.933962"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.935709"], ["updated_at", "2016-12-07 09:34:44.935709"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.937683"], ["updated_at", "2016-12-07 09:34:44.937683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.943056"], ["updated_at", "2016-12-07 09:34:44.943056"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.945104"], ["updated_at", "2016-12-07 09:34:44.945104"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.946332"], ["updated_at", "2016-12-07 09:34:44.946332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.952372"], ["updated_at", "2016-12-07 09:34:44.952372"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.953827"], ["updated_at", "2016-12-07 09:34:44.953827"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.954926"], ["updated_at", "2016-12-07 09:34:44.954926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.959673"], ["updated_at", "2016-12-07 09:34:44.959673"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.960984"], ["updated_at", "2016-12-07 09:34:44.960984"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.962046"], ["updated_at", "2016-12-07 09:34:44.962046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.966612"], ["updated_at", "2016-12-07 09:34:44.966612"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.967907"], ["updated_at", "2016-12-07 09:34:44.967907"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.968901"], ["updated_at", "2016-12-07 09:34:44.968901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:34:44.973205"], ["updated_at", "2016-12-07 09:34:44.973205"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.974441"], ["updated_at", "2016-12-07 09:34:44.974441"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:34:44.975636"], ["updated_at", "2016-12-07 09:34:44.975636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.672250"], ["updated_at", "2016-12-07 09:35:29.672250"]] SQL (1.9ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.689320"], ["updated_at", "2016-12-07 09:35:29.689320"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.692536"], ["updated_at", "2016-12-07 09:35:29.692536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.712576"], ["updated_at", "2016-12-07 09:35:29.712576"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.713927"], ["updated_at", "2016-12-07 09:35:29.713927"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.714976"], ["updated_at", "2016-12-07 09:35:29.714976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.718996"], ["updated_at", "2016-12-07 09:35:29.718996"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.720175"], ["updated_at", "2016-12-07 09:35:29.720175"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.721241"], ["updated_at", "2016-12-07 09:35:29.721241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.729184"], ["updated_at", "2016-12-07 09:35:29.729184"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.730682"], ["updated_at", "2016-12-07 09:35:29.730682"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.732461"], ["updated_at", "2016-12-07 09:35:29.732461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.737689"], ["updated_at", "2016-12-07 09:35:29.737689"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.739542"], ["updated_at", "2016-12-07 09:35:29.739542"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.740636"], ["updated_at", "2016-12-07 09:35:29.740636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.745143"], ["updated_at", "2016-12-07 09:35:29.745143"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.746359"], ["updated_at", "2016-12-07 09:35:29.746359"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.747436"], ["updated_at", "2016-12-07 09:35:29.747436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.751853"], ["updated_at", "2016-12-07 09:35:29.751853"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.753174"], ["updated_at", "2016-12-07 09:35:29.753174"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.754255"], ["updated_at", "2016-12-07 09:35:29.754255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.788622"], ["updated_at", "2016-12-07 09:35:29.788622"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.790272"], ["updated_at", "2016-12-07 09:35:29.790272"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.791396"], ["updated_at", "2016-12-07 09:35:29.791396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.795981"], ["updated_at", "2016-12-07 09:35:29.795981"]] SQL (0.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.797460"], ["updated_at", "2016-12-07 09:35:29.797460"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.800170"], ["updated_at", "2016-12-07 09:35:29.800170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.806770"], ["updated_at", "2016-12-07 09:35:29.806770"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.808178"], ["updated_at", "2016-12-07 09:35:29.808178"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.810459"], ["updated_at", "2016-12-07 09:35:29.810459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 09:35:29.819193"], ["updated_at", "2016-12-07 09:35:29.819193"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.821813"], ["updated_at", "2016-12-07 09:35:29.821813"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 09:35:29.823656"], ["updated_at", "2016-12-07 09:35:29.823656"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.877452"], ["updated_at", "2016-12-07 10:22:14.877452"]] SQL (1.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.892849"], ["updated_at", "2016-12-07 10:22:14.892849"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.896008"], ["updated_at", "2016-12-07 10:22:14.896008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.920417"], ["updated_at", "2016-12-07 10:22:14.920417"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.922127"], ["updated_at", "2016-12-07 10:22:14.922127"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.923329"], ["updated_at", "2016-12-07 10:22:14.923329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.927542"], ["updated_at", "2016-12-07 10:22:14.927542"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.929099"], ["updated_at", "2016-12-07 10:22:14.929099"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.930191"], ["updated_at", "2016-12-07 10:22:14.930191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.937387"], ["updated_at", "2016-12-07 10:22:14.937387"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.939953"], ["updated_at", "2016-12-07 10:22:14.939953"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.942679"], ["updated_at", "2016-12-07 10:22:14.942679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.949893"], ["updated_at", "2016-12-07 10:22:14.949893"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.951665"], ["updated_at", "2016-12-07 10:22:14.951665"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.953372"], ["updated_at", "2016-12-07 10:22:14.953372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.959391"], ["updated_at", "2016-12-07 10:22:14.959391"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.960763"], ["updated_at", "2016-12-07 10:22:14.960763"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.961785"], ["updated_at", "2016-12-07 10:22:14.961785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:14.966693"], ["updated_at", "2016-12-07 10:22:14.966693"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.968258"], ["updated_at", "2016-12-07 10:22:14.968258"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:14.969501"], ["updated_at", "2016-12-07 10:22:14.969501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:15.003161"], ["updated_at", "2016-12-07 10:22:15.003161"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.004809"], ["updated_at", "2016-12-07 10:22:15.004809"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.005957"], ["updated_at", "2016-12-07 10:22:15.005957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:15.011831"], ["updated_at", "2016-12-07 10:22:15.011831"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.013182"], ["updated_at", "2016-12-07 10:22:15.013182"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.014326"], ["updated_at", "2016-12-07 10:22:15.014326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:15.020021"], ["updated_at", "2016-12-07 10:22:15.020021"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.021399"], ["updated_at", "2016-12-07 10:22:15.021399"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.022511"], ["updated_at", "2016-12-07 10:22:15.022511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 10:22:15.027362"], ["updated_at", "2016-12-07 10:22:15.027362"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.028665"], ["updated_at", "2016-12-07 10:22:15.028665"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 10:22:15.029723"], ["updated_at", "2016-12-07 10:22:15.029723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.809862"], ["updated_at", "2016-12-07 13:33:45.809862"]] SQL (2.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.825586"], ["updated_at", "2016-12-07 13:33:45.825586"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.829706"], ["updated_at", "2016-12-07 13:33:45.829706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.852435"], ["updated_at", "2016-12-07 13:33:45.852435"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.854462"], ["updated_at", "2016-12-07 13:33:45.854462"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.856136"], ["updated_at", "2016-12-07 13:33:45.856136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.863352"], ["updated_at", "2016-12-07 13:33:45.863352"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.865844"], ["updated_at", "2016-12-07 13:33:45.865844"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.867564"], ["updated_at", "2016-12-07 13:33:45.867564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.874716"], ["updated_at", "2016-12-07 13:33:45.874716"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.876098"], ["updated_at", "2016-12-07 13:33:45.876098"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.877219"], ["updated_at", "2016-12-07 13:33:45.877219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.881483"], ["updated_at", "2016-12-07 13:33:45.881483"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.882690"], ["updated_at", "2016-12-07 13:33:45.882690"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.884278"], ["updated_at", "2016-12-07 13:33:45.884278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.889435"], ["updated_at", "2016-12-07 13:33:45.889435"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.891839"], ["updated_at", "2016-12-07 13:33:45.891839"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.892988"], ["updated_at", "2016-12-07 13:33:45.892988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.898062"], ["updated_at", "2016-12-07 13:33:45.898062"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.901017"], ["updated_at", "2016-12-07 13:33:45.901017"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.903133"], ["updated_at", "2016-12-07 13:33:45.903133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.909386"], ["updated_at", "2016-12-07 13:33:45.909386"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.911576"], ["updated_at", "2016-12-07 13:33:45.911576"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.913041"], ["updated_at", "2016-12-07 13:33:45.913041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.917550"], ["updated_at", "2016-12-07 13:33:45.917550"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.918802"], ["updated_at", "2016-12-07 13:33:45.918802"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.919872"], ["updated_at", "2016-12-07 13:33:45.919872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.924511"], ["updated_at", "2016-12-07 13:33:45.924511"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.925785"], ["updated_at", "2016-12-07 13:33:45.925785"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.926832"], ["updated_at", "2016-12-07 13:33:45.926832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:33:45.932605"], ["updated_at", "2016-12-07 13:33:45.932605"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.934523"], ["updated_at", "2016-12-07 13:33:45.934523"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:33:45.935862"], ["updated_at", "2016-12-07 13:33:45.935862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.255091"], ["updated_at", "2016-12-07 13:36:58.255091"]] SQL (1.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.272672"], ["updated_at", "2016-12-07 13:36:58.272672"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.275703"], ["updated_at", "2016-12-07 13:36:58.275703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.295813"], ["updated_at", "2016-12-07 13:36:58.295813"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.297181"], ["updated_at", "2016-12-07 13:36:58.297181"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.298256"], ["updated_at", "2016-12-07 13:36:58.298256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.304734"], ["updated_at", "2016-12-07 13:36:58.304734"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.306262"], ["updated_at", "2016-12-07 13:36:58.306262"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.307404"], ["updated_at", "2016-12-07 13:36:58.307404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.313727"], ["updated_at", "2016-12-07 13:36:58.313727"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.315308"], ["updated_at", "2016-12-07 13:36:58.315308"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.316914"], ["updated_at", "2016-12-07 13:36:58.316914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.321638"], ["updated_at", "2016-12-07 13:36:58.321638"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.322899"], ["updated_at", "2016-12-07 13:36:58.322899"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.323986"], ["updated_at", "2016-12-07 13:36:58.323986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.328108"], ["updated_at", "2016-12-07 13:36:58.328108"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.329312"], ["updated_at", "2016-12-07 13:36:58.329312"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.330915"], ["updated_at", "2016-12-07 13:36:58.330915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.335590"], ["updated_at", "2016-12-07 13:36:58.335590"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.336765"], ["updated_at", "2016-12-07 13:36:58.336765"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.337772"], ["updated_at", "2016-12-07 13:36:58.337772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.345247"], ["updated_at", "2016-12-07 13:36:58.345247"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.346883"], ["updated_at", "2016-12-07 13:36:58.346883"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.348781"], ["updated_at", "2016-12-07 13:36:58.348781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.354169"], ["updated_at", "2016-12-07 13:36:58.354169"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.355592"], ["updated_at", "2016-12-07 13:36:58.355592"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.356839"], ["updated_at", "2016-12-07 13:36:58.356839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.362901"], ["updated_at", "2016-12-07 13:36:58.362901"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.364393"], ["updated_at", "2016-12-07 13:36:58.364393"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.365569"], ["updated_at", "2016-12-07 13:36:58.365569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 13:36:58.370561"], ["updated_at", "2016-12-07 13:36:58.370561"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.372064"], ["updated_at", "2016-12-07 13:36:58.372064"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 13:36:58.373301"], ["updated_at", "2016-12-07 13:36:58.373301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.419643"], ["updated_at", "2016-12-07 14:19:26.419643"]] SQL (1.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.441379"], ["updated_at", "2016-12-07 14:19:26.441379"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.444340"], ["updated_at", "2016-12-07 14:19:26.444340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.465193"], ["updated_at", "2016-12-07 14:19:26.465193"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.466750"], ["updated_at", "2016-12-07 14:19:26.466750"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.467886"], ["updated_at", "2016-12-07 14:19:26.467886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.472632"], ["updated_at", "2016-12-07 14:19:26.472632"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.474650"], ["updated_at", "2016-12-07 14:19:26.474650"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.475899"], ["updated_at", "2016-12-07 14:19:26.475899"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.482265"], ["updated_at", "2016-12-07 14:19:26.482265"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.483729"], ["updated_at", "2016-12-07 14:19:26.483729"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.485394"], ["updated_at", "2016-12-07 14:19:26.485394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.490229"], ["updated_at", "2016-12-07 14:19:26.490229"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.491599"], ["updated_at", "2016-12-07 14:19:26.491599"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.492783"], ["updated_at", "2016-12-07 14:19:26.492783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.497277"], ["updated_at", "2016-12-07 14:19:26.497277"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.498849"], ["updated_at", "2016-12-07 14:19:26.498849"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.499975"], ["updated_at", "2016-12-07 14:19:26.499975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.504627"], ["updated_at", "2016-12-07 14:19:26.504627"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.506008"], ["updated_at", "2016-12-07 14:19:26.506008"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.507124"], ["updated_at", "2016-12-07 14:19:26.507124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.512772"], ["updated_at", "2016-12-07 14:19:26.512772"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.514079"], ["updated_at", "2016-12-07 14:19:26.514079"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.515137"], ["updated_at", "2016-12-07 14:19:26.515137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.549884"], ["updated_at", "2016-12-07 14:19:26.549884"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.551512"], ["updated_at", "2016-12-07 14:19:26.551512"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.552532"], ["updated_at", "2016-12-07 14:19:26.552532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.557324"], ["updated_at", "2016-12-07 14:19:26.557324"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.558876"], ["updated_at", "2016-12-07 14:19:26.558876"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.560070"], ["updated_at", "2016-12-07 14:19:26.560070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.564492"], ["updated_at", "2016-12-07 14:19:26.564492"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.565722"], ["updated_at", "2016-12-07 14:19:26.565722"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.566789"], ["updated_at", "2016-12-07 14:19:26.566789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:26.571454"], ["updated_at", "2016-12-07 14:19:26.571454"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.573025"], ["updated_at", "2016-12-07 14:19:26.573025"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:26.574235"], ["updated_at", "2016-12-07 14:19:26.574235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.099813"], ["updated_at", "2016-12-07 14:19:38.099813"]] SQL (1.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.116464"], ["updated_at", "2016-12-07 14:19:38.116464"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.119636"], ["updated_at", "2016-12-07 14:19:38.119636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.139321"], ["updated_at", "2016-12-07 14:19:38.139321"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.140804"], ["updated_at", "2016-12-07 14:19:38.140804"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.142183"], ["updated_at", "2016-12-07 14:19:38.142183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.148278"], ["updated_at", "2016-12-07 14:19:38.148278"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.149908"], ["updated_at", "2016-12-07 14:19:38.149908"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.151040"], ["updated_at", "2016-12-07 14:19:38.151040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.156304"], ["updated_at", "2016-12-07 14:19:38.156304"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.157594"], ["updated_at", "2016-12-07 14:19:38.157594"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.158693"], ["updated_at", "2016-12-07 14:19:38.158693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.164345"], ["updated_at", "2016-12-07 14:19:38.164345"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.165804"], ["updated_at", "2016-12-07 14:19:38.165804"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.166898"], ["updated_at", "2016-12-07 14:19:38.166898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.171405"], ["updated_at", "2016-12-07 14:19:38.171405"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.173165"], ["updated_at", "2016-12-07 14:19:38.173165"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.174318"], ["updated_at", "2016-12-07 14:19:38.174318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.181122"], ["updated_at", "2016-12-07 14:19:38.181122"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.183315"], ["updated_at", "2016-12-07 14:19:38.183315"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.184963"], ["updated_at", "2016-12-07 14:19:38.184963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.192521"], ["updated_at", "2016-12-07 14:19:38.192521"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.194098"], ["updated_at", "2016-12-07 14:19:38.194098"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.195297"], ["updated_at", "2016-12-07 14:19:38.195297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.201317"], ["updated_at", "2016-12-07 14:19:38.201317"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.202633"], ["updated_at", "2016-12-07 14:19:38.202633"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.203644"], ["updated_at", "2016-12-07 14:19:38.203644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.209129"], ["updated_at", "2016-12-07 14:19:38.209129"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.210496"], ["updated_at", "2016-12-07 14:19:38.210496"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.211849"], ["updated_at", "2016-12-07 14:19:38.211849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.218227"], ["updated_at", "2016-12-07 14:19:38.218227"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.220059"], ["updated_at", "2016-12-07 14:19:38.220059"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.221281"], ["updated_at", "2016-12-07 14:19:38.221281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:19:38.225674"], ["updated_at", "2016-12-07 14:19:38.225674"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.227186"], ["updated_at", "2016-12-07 14:19:38.227186"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:19:38.228320"], ["updated_at", "2016-12-07 14:19:38.228320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.674222"], ["updated_at", "2016-12-07 14:23:40.674222"]] SQL (1.8ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.691592"], ["updated_at", "2016-12-07 14:23:40.691592"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.694730"], ["updated_at", "2016-12-07 14:23:40.694730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.715598"], ["updated_at", "2016-12-07 14:23:40.715598"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.717027"], ["updated_at", "2016-12-07 14:23:40.717027"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.718095"], ["updated_at", "2016-12-07 14:23:40.718095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.722748"], ["updated_at", "2016-12-07 14:23:40.722748"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.724663"], ["updated_at", "2016-12-07 14:23:40.724663"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.725781"], ["updated_at", "2016-12-07 14:23:40.725781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.732586"], ["updated_at", "2016-12-07 14:23:40.732586"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.734351"], ["updated_at", "2016-12-07 14:23:40.734351"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.735637"], ["updated_at", "2016-12-07 14:23:40.735637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.740207"], ["updated_at", "2016-12-07 14:23:40.740207"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.741543"], ["updated_at", "2016-12-07 14:23:40.741543"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.742649"], ["updated_at", "2016-12-07 14:23:40.742649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.747274"], ["updated_at", "2016-12-07 14:23:40.747274"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.748837"], ["updated_at", "2016-12-07 14:23:40.748837"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.750029"], ["updated_at", "2016-12-07 14:23:40.750029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.754689"], ["updated_at", "2016-12-07 14:23:40.754689"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.756060"], ["updated_at", "2016-12-07 14:23:40.756060"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.757165"], ["updated_at", "2016-12-07 14:23:40.757165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.762719"], ["updated_at", "2016-12-07 14:23:40.762719"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.764973"], ["updated_at", "2016-12-07 14:23:40.764973"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.767019"], ["updated_at", "2016-12-07 14:23:40.767019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.773725"], ["updated_at", "2016-12-07 14:23:40.773725"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.774951"], ["updated_at", "2016-12-07 14:23:40.774951"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.776590"], ["updated_at", "2016-12-07 14:23:40.776590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.781954"], ["updated_at", "2016-12-07 14:23:40.781954"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.783754"], ["updated_at", "2016-12-07 14:23:40.783754"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.784807"], ["updated_at", "2016-12-07 14:23:40.784807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.789487"], ["updated_at", "2016-12-07 14:23:40.789487"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.790974"], ["updated_at", "2016-12-07 14:23:40.790974"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.792147"], ["updated_at", "2016-12-07 14:23:40.792147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:23:40.796514"], ["updated_at", "2016-12-07 14:23:40.796514"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.797760"], ["updated_at", "2016-12-07 14:23:40.797760"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:23:40.798815"], ["updated_at", "2016-12-07 14:23:40.798815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.324541"], ["updated_at", "2016-12-07 14:24:12.324541"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.340281"], ["updated_at", "2016-12-07 14:24:12.340281"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.341957"], ["updated_at", "2016-12-07 14:24:12.341957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.361504"], ["updated_at", "2016-12-07 14:24:12.361504"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.362876"], ["updated_at", "2016-12-07 14:24:12.362876"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.363991"], ["updated_at", "2016-12-07 14:24:12.363991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.368315"], ["updated_at", "2016-12-07 14:24:12.368315"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.369536"], ["updated_at", "2016-12-07 14:24:12.369536"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.370865"], ["updated_at", "2016-12-07 14:24:12.370865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.380327"], ["updated_at", "2016-12-07 14:24:12.380327"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.382351"], ["updated_at", "2016-12-07 14:24:12.382351"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.383757"], ["updated_at", "2016-12-07 14:24:12.383757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.389269"], ["updated_at", "2016-12-07 14:24:12.389269"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.390633"], ["updated_at", "2016-12-07 14:24:12.390633"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.391667"], ["updated_at", "2016-12-07 14:24:12.391667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.395964"], ["updated_at", "2016-12-07 14:24:12.395964"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.397196"], ["updated_at", "2016-12-07 14:24:12.397196"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.398419"], ["updated_at", "2016-12-07 14:24:12.398419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.403065"], ["updated_at", "2016-12-07 14:24:12.403065"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.404658"], ["updated_at", "2016-12-07 14:24:12.404658"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.405907"], ["updated_at", "2016-12-07 14:24:12.405907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.411890"], ["updated_at", "2016-12-07 14:24:12.411890"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.413507"], ["updated_at", "2016-12-07 14:24:12.413507"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.414604"], ["updated_at", "2016-12-07 14:24:12.414604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.449875"], ["updated_at", "2016-12-07 14:24:12.449875"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.452372"], ["updated_at", "2016-12-07 14:24:12.452372"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.454046"], ["updated_at", "2016-12-07 14:24:12.454046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.460186"], ["updated_at", "2016-12-07 14:24:12.460186"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.461500"], ["updated_at", "2016-12-07 14:24:12.461500"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.462599"], ["updated_at", "2016-12-07 14:24:12.462599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.467184"], ["updated_at", "2016-12-07 14:24:12.467184"]] SQL (0.4ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.468584"], ["updated_at", "2016-12-07 14:24:12.468584"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.471757"], ["updated_at", "2016-12-07 14:24:12.471757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:24:12.479968"], ["updated_at", "2016-12-07 14:24:12.479968"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.481973"], ["updated_at", "2016-12-07 14:24:12.481973"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:24:12.483427"], ["updated_at", "2016-12-07 14:24:12.483427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.743769"], ["updated_at", "2016-12-07 14:25:11.743769"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.758319"], ["updated_at", "2016-12-07 14:25:11.758319"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.759744"], ["updated_at", "2016-12-07 14:25:11.759744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.785472"], ["updated_at", "2016-12-07 14:25:11.785472"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.786854"], ["updated_at", "2016-12-07 14:25:11.786854"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.787937"], ["updated_at", "2016-12-07 14:25:11.787937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.792133"], ["updated_at", "2016-12-07 14:25:11.792133"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.793367"], ["updated_at", "2016-12-07 14:25:11.793367"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.794746"], ["updated_at", "2016-12-07 14:25:11.794746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.800200"], ["updated_at", "2016-12-07 14:25:11.800200"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.801460"], ["updated_at", "2016-12-07 14:25:11.801460"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.802565"], ["updated_at", "2016-12-07 14:25:11.802565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.806705"], ["updated_at", "2016-12-07 14:25:11.806705"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.807973"], ["updated_at", "2016-12-07 14:25:11.807973"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.809500"], ["updated_at", "2016-12-07 14:25:11.809500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.814137"], ["updated_at", "2016-12-07 14:25:11.814137"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.815402"], ["updated_at", "2016-12-07 14:25:11.815402"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.816508"], ["updated_at", "2016-12-07 14:25:11.816508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.823137"], ["updated_at", "2016-12-07 14:25:11.823137"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.824487"], ["updated_at", "2016-12-07 14:25:11.824487"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.825574"], ["updated_at", "2016-12-07 14:25:11.825574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.831915"], ["updated_at", "2016-12-07 14:25:11.831915"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.833653"], ["updated_at", "2016-12-07 14:25:11.833653"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.834847"], ["updated_at", "2016-12-07 14:25:11.834847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.870118"], ["updated_at", "2016-12-07 14:25:11.870118"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.871593"], ["updated_at", "2016-12-07 14:25:11.871593"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.872723"], ["updated_at", "2016-12-07 14:25:11.872723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.876902"], ["updated_at", "2016-12-07 14:25:11.876902"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.878141"], ["updated_at", "2016-12-07 14:25:11.878141"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.879501"], ["updated_at", "2016-12-07 14:25:11.879501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.884687"], ["updated_at", "2016-12-07 14:25:11.884687"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.886338"], ["updated_at", "2016-12-07 14:25:11.886338"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.888381"], ["updated_at", "2016-12-07 14:25:11.888381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:11.893991"], ["updated_at", "2016-12-07 14:25:11.893991"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.895531"], ["updated_at", "2016-12-07 14:25:11.895531"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:11.896623"], ["updated_at", "2016-12-07 14:25:11.896623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.545034"], ["updated_at", "2016-12-07 14:25:46.545034"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.564123"], ["updated_at", "2016-12-07 14:25:46.564123"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.565789"], ["updated_at", "2016-12-07 14:25:46.565789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.585349"], ["updated_at", "2016-12-07 14:25:46.585349"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.586681"], ["updated_at", "2016-12-07 14:25:46.586681"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.587721"], ["updated_at", "2016-12-07 14:25:46.587721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.593871"], ["updated_at", "2016-12-07 14:25:46.593871"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.595476"], ["updated_at", "2016-12-07 14:25:46.595476"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.596596"], ["updated_at", "2016-12-07 14:25:46.596596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.602130"], ["updated_at", "2016-12-07 14:25:46.602130"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.603639"], ["updated_at", "2016-12-07 14:25:46.603639"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.604765"], ["updated_at", "2016-12-07 14:25:46.604765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.610436"], ["updated_at", "2016-12-07 14:25:46.610436"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.611800"], ["updated_at", "2016-12-07 14:25:46.611800"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.612822"], ["updated_at", "2016-12-07 14:25:46.612822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.616929"], ["updated_at", "2016-12-07 14:25:46.616929"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.618123"], ["updated_at", "2016-12-07 14:25:46.618123"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.619353"], ["updated_at", "2016-12-07 14:25:46.619353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.625558"], ["updated_at", "2016-12-07 14:25:46.625558"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.627103"], ["updated_at", "2016-12-07 14:25:46.627103"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.628207"], ["updated_at", "2016-12-07 14:25:46.628207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.635170"], ["updated_at", "2016-12-07 14:25:46.635170"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.637650"], ["updated_at", "2016-12-07 14:25:46.637650"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.639628"], ["updated_at", "2016-12-07 14:25:46.639628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.668358"], ["updated_at", "2016-12-07 14:25:46.668358"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.669901"], ["updated_at", "2016-12-07 14:25:46.669901"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.670983"], ["updated_at", "2016-12-07 14:25:46.670983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.676333"], ["updated_at", "2016-12-07 14:25:46.676333"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.678127"], ["updated_at", "2016-12-07 14:25:46.678127"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.679229"], ["updated_at", "2016-12-07 14:25:46.679229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.684019"], ["updated_at", "2016-12-07 14:25:46.684019"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.685286"], ["updated_at", "2016-12-07 14:25:46.685286"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.686304"], ["updated_at", "2016-12-07 14:25:46.686304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:25:46.690843"], ["updated_at", "2016-12-07 14:25:46.690843"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.692110"], ["updated_at", "2016-12-07 14:25:46.692110"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:25:46.693292"], ["updated_at", "2016-12-07 14:25:46.693292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.199121"], ["updated_at", "2016-12-07 14:26:21.199121"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.212453"], ["updated_at", "2016-12-07 14:26:21.212453"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.214097"], ["updated_at", "2016-12-07 14:26:21.214097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.233939"], ["updated_at", "2016-12-07 14:26:21.233939"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.235222"], ["updated_at", "2016-12-07 14:26:21.235222"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.236249"], ["updated_at", "2016-12-07 14:26:21.236249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.240233"], ["updated_at", "2016-12-07 14:26:21.240233"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.241396"], ["updated_at", "2016-12-07 14:26:21.241396"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.242380"], ["updated_at", "2016-12-07 14:26:21.242380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.249500"], ["updated_at", "2016-12-07 14:26:21.249500"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.251729"], ["updated_at", "2016-12-07 14:26:21.251729"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.253410"], ["updated_at", "2016-12-07 14:26:21.253410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.259203"], ["updated_at", "2016-12-07 14:26:21.259203"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.260675"], ["updated_at", "2016-12-07 14:26:21.260675"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.261790"], ["updated_at", "2016-12-07 14:26:21.261790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.267262"], ["updated_at", "2016-12-07 14:26:21.267262"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.269404"], ["updated_at", "2016-12-07 14:26:21.269404"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.271653"], ["updated_at", "2016-12-07 14:26:21.271653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.276717"], ["updated_at", "2016-12-07 14:26:21.276717"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.278448"], ["updated_at", "2016-12-07 14:26:21.278448"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.279872"], ["updated_at", "2016-12-07 14:26:21.279872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.287463"], ["updated_at", "2016-12-07 14:26:21.287463"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.289819"], ["updated_at", "2016-12-07 14:26:21.289819"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.291591"], ["updated_at", "2016-12-07 14:26:21.291591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.297904"], ["updated_at", "2016-12-07 14:26:21.297904"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.299175"], ["updated_at", "2016-12-07 14:26:21.299175"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.300284"], ["updated_at", "2016-12-07 14:26:21.300284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.304460"], ["updated_at", "2016-12-07 14:26:21.304460"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.305657"], ["updated_at", "2016-12-07 14:26:21.305657"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.307116"], ["updated_at", "2016-12-07 14:26:21.307116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.312284"], ["updated_at", "2016-12-07 14:26:21.312284"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.314652"], ["updated_at", "2016-12-07 14:26:21.314652"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.315797"], ["updated_at", "2016-12-07 14:26:21.315797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:26:21.320390"], ["updated_at", "2016-12-07 14:26:21.320390"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.322163"], ["updated_at", "2016-12-07 14:26:21.322163"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:26:21.323303"], ["updated_at", "2016-12-07 14:26:21.323303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.583272"], ["updated_at", "2016-12-07 14:30:31.583272"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.598326"], ["updated_at", "2016-12-07 14:30:31.598326"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.600073"], ["updated_at", "2016-12-07 14:30:31.600073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.624808"], ["updated_at", "2016-12-07 14:30:31.624808"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.626139"], ["updated_at", "2016-12-07 14:30:31.626139"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.627225"], ["updated_at", "2016-12-07 14:30:31.627225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.631333"], ["updated_at", "2016-12-07 14:30:31.631333"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.632553"], ["updated_at", "2016-12-07 14:30:31.632553"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.633792"], ["updated_at", "2016-12-07 14:30:31.633792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.639155"], ["updated_at", "2016-12-07 14:30:31.639155"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.640356"], ["updated_at", "2016-12-07 14:30:31.640356"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.641387"], ["updated_at", "2016-12-07 14:30:31.641387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.645497"], ["updated_at", "2016-12-07 14:30:31.645497"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.646712"], ["updated_at", "2016-12-07 14:30:31.646712"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.647750"], ["updated_at", "2016-12-07 14:30:31.647750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.652504"], ["updated_at", "2016-12-07 14:30:31.652504"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.653747"], ["updated_at", "2016-12-07 14:30:31.653747"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.654817"], ["updated_at", "2016-12-07 14:30:31.654817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.659454"], ["updated_at", "2016-12-07 14:30:31.659454"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.661148"], ["updated_at", "2016-12-07 14:30:31.661148"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.662349"], ["updated_at", "2016-12-07 14:30:31.662349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.668894"], ["updated_at", "2016-12-07 14:30:31.668894"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.670185"], ["updated_at", "2016-12-07 14:30:31.670185"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.671187"], ["updated_at", "2016-12-07 14:30:31.671187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.675680"], ["updated_at", "2016-12-07 14:30:31.675680"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.676877"], ["updated_at", "2016-12-07 14:30:31.676877"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.678164"], ["updated_at", "2016-12-07 14:30:31.678164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.682869"], ["updated_at", "2016-12-07 14:30:31.682869"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.684548"], ["updated_at", "2016-12-07 14:30:31.684548"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.685821"], ["updated_at", "2016-12-07 14:30:31.685821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.690640"], ["updated_at", "2016-12-07 14:30:31.690640"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.692194"], ["updated_at", "2016-12-07 14:30:31.692194"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.693387"], ["updated_at", "2016-12-07 14:30:31.693387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 14:30:31.697857"], ["updated_at", "2016-12-07 14:30:31.697857"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.699077"], ["updated_at", "2016-12-07 14:30:31.699077"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 14:30:31.700146"], ["updated_at", "2016-12-07 14:30:31.700146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:29.890278"], ["updated_at", "2016-12-07 16:52:29.890278"]] SQL (1.7ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:29.919139"], ["updated_at", "2016-12-07 16:52:29.919139"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:29.922383"], ["updated_at", "2016-12-07 16:52:29.922383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (2.5ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (3.9ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.051231"], ["updated_at", "2016-12-07 16:52:30.051231"]] SQL (0.9ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.063689"], ["updated_at", "2016-12-07 16:52:30.063689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (10.9ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.6ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '504a345c-d182-48f6-9332-0856ff36987e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.8ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "504a345c-d182-48f6-9332-0856ff36987e"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["created_at", "2016-12-04 16:52:30.066732"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:52:30.149718"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '504a345c-d182-48f6-9332-0856ff36987e', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "created_at" = '2016-12-04 16:52:30.066732', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:52:30.149718', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.156578', "updated_at" = '2016-12-07 16:52:30.156805', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.6ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '504a345c-d182-48f6-9332-0856ff36987e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.179332"], ["updated_at", "2016-12-07 16:52:30.179332"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.180789"], ["updated_at", "2016-12-07 16:52:30.180789"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.181853"], ["updated_at", "2016-12-07 16:52:30.181853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.189330"], ["updated_at", "2016-12-07 16:52:30.189330"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.192564"], ["updated_at", "2016-12-07 16:52:30.192564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.7ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.215932"], ["updated_at", "2016-12-07 16:52:30.215932"]] SQL (1.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.224636"], ["updated_at", "2016-12-07 16:52:30.224636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '854299df-e34a-463c-aa11-3974ad8d47a2' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "854299df-e34a-463c-aa11-3974ad8d47a2"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.234392"], ["updated_at", "2016-12-07 16:52:30.234392"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '854299df-e34a-463c-aa11-3974ad8d47a2', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.234392', "updated_at" = '2016-12-07 16:52:30.234392', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.237946', "updated_at" = '2016-12-07 16:52:30.238208', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '854299df-e34a-463c-aa11-3974ad8d47a2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.261805"], ["updated_at", "2016-12-07 16:52:30.261805"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.264314"], ["updated_at", "2016-12-07 16:52:30.264314"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.266147"], ["updated_at", "2016-12-07 16:52:30.266147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.273941"], ["updated_at", "2016-12-07 16:52:30.273941"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.276330"], ["updated_at", "2016-12-07 16:52:30.276330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.283923"], ["updated_at", "2016-12-07 16:52:30.283923"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.286268"], ["updated_at", "2016-12-07 16:52:30.286268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '976b49f4-65c2-4bcf-b312-d75e7c59b3eb' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "976b49f4-65c2-4bcf-b312-d75e7c59b3eb"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.295373"], ["updated_at", "2016-12-07 16:52:30.295373"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '976b49f4-65c2-4bcf-b312-d75e7c59b3eb', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.295373', "updated_at" = '2016-12-07 16:52:30.295373', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.300188', "updated_at" = '2016-12-07 16:52:30.300566', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '976b49f4-65c2-4bcf-b312-d75e7c59b3eb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.312428"], ["updated_at", "2016-12-07 16:52:30.312428"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.313984"], ["updated_at", "2016-12-07 16:52:30.313984"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.315230"], ["updated_at", "2016-12-07 16:52:30.315230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.321910"], ["updated_at", "2016-12-07 16:52:30.321910"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.324888"], ["updated_at", "2016-12-07 16:52:30.324888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.332529"], ["updated_at", "2016-12-07 16:52:30.332529"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.334498"], ["updated_at", "2016-12-07 16:52:30.334498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '98bce8ce-fe4d-47f0-8b6d-300128ec592f' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "98bce8ce-fe4d-47f0-8b6d-300128ec592f"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.343107"], ["updated_at", "2016-12-07 16:52:30.343107"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '98bce8ce-fe4d-47f0-8b6d-300128ec592f', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.343107', "updated_at" = '2016-12-07 16:52:30.343107', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.349015', "updated_at" = '2016-12-07 16:52:30.349450', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '98bce8ce-fe4d-47f0-8b6d-300128ec592f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.360812"], ["updated_at", "2016-12-07 16:52:30.360812"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.362297"], ["updated_at", "2016-12-07 16:52:30.362297"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.363495"], ["updated_at", "2016-12-07 16:52:30.363495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.369669"], ["updated_at", "2016-12-07 16:52:30.369669"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.371746"], ["updated_at", "2016-12-07 16:52:30.371746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.378578"], ["updated_at", "2016-12-07 16:52:30.378578"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.380408"], ["updated_at", "2016-12-07 16:52:30.380408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '21ff0391-158d-4849-a108-0397ac6e87ce' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "21ff0391-158d-4849-a108-0397ac6e87ce"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.388053"], ["updated_at", "2016-12-07 16:52:30.388053"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '21ff0391-158d-4849-a108-0397ac6e87ce', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.388053', "updated_at" = '2016-12-07 16:52:30.388053', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.392029', "updated_at" = '2016-12-07 16:52:30.392314', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '21ff0391-158d-4849-a108-0397ac6e87ce' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.428466"], ["updated_at", "2016-12-07 16:52:30.428466"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.430492"], ["updated_at", "2016-12-07 16:52:30.430492"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.431980"], ["updated_at", "2016-12-07 16:52:30.431980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.438760"], ["updated_at", "2016-12-07 16:52:30.438760"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.440753"], ["updated_at", "2016-12-07 16:52:30.440753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.4ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.451207"], ["updated_at", "2016-12-07 16:52:30.451207"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.454652"], ["updated_at", "2016-12-07 16:52:30.454652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1ad5a2d8-933b-400c-8d11-07318e289857' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1ad5a2d8-933b-400c-8d11-07318e289857"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.464207"], ["updated_at", "2016-12-07 16:52:30.464207"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1ad5a2d8-933b-400c-8d11-07318e289857', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.464207', "updated_at" = '2016-12-07 16:52:30.464207', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.468054', "updated_at" = '2016-12-07 16:52:30.468329', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1ad5a2d8-933b-400c-8d11-07318e289857' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.480039"], ["updated_at", "2016-12-07 16:52:30.480039"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.482205"], ["updated_at", "2016-12-07 16:52:30.482205"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.483954"], ["updated_at", "2016-12-07 16:52:30.483954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.490804"], ["updated_at", "2016-12-07 16:52:30.490804"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.492897"], ["updated_at", "2016-12-07 16:52:30.492897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.502326"], ["updated_at", "2016-12-07 16:52:30.502326"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.504619"], ["updated_at", "2016-12-07 16:52:30.504619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'af1973c7-312e-415b-9409-d58f9cb1267e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "af1973c7-312e-415b-9409-d58f9cb1267e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.514475"], ["updated_at", "2016-12-07 16:52:30.514475"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'af1973c7-312e-415b-9409-d58f9cb1267e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.514475', "updated_at" = '2016-12-07 16:52:30.514475', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.518070', "updated_at" = '2016-12-07 16:52:30.518304', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'af1973c7-312e-415b-9409-d58f9cb1267e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.527669"], ["updated_at", "2016-12-07 16:52:30.527669"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.529022"], ["updated_at", "2016-12-07 16:52:30.529022"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.530037"], ["updated_at", "2016-12-07 16:52:30.530037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.535703"], ["updated_at", "2016-12-07 16:52:30.535703"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.538181"], ["updated_at", "2016-12-07 16:52:30.538181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.545899"], ["updated_at", "2016-12-07 16:52:30.545899"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.548071"], ["updated_at", "2016-12-07 16:52:30.548071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a0c2e456-fed1-4929-bc5c-db89a5c1c2b2' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a0c2e456-fed1-4929-bc5c-db89a5c1c2b2"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.559591"], ["updated_at", "2016-12-07 16:52:30.559591"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a0c2e456-fed1-4929-bc5c-db89a5c1c2b2', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.559591', "updated_at" = '2016-12-07 16:52:30.559591', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.563386', "updated_at" = '2016-12-07 16:52:30.563636', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a0c2e456-fed1-4929-bc5c-db89a5c1c2b2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.574468"], ["updated_at", "2016-12-07 16:52:30.574468"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.576902"], ["updated_at", "2016-12-07 16:52:30.576902"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.578619"], ["updated_at", "2016-12-07 16:52:30.578619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.585810"], ["updated_at", "2016-12-07 16:52:30.585810"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.587813"], ["updated_at", "2016-12-07 16:52:30.587813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.595289"], ["updated_at", "2016-12-07 16:52:30.595289"]] SQL (0.7ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.597632"], ["updated_at", "2016-12-07 16:52:30.597632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'dfc3503f-3ace-4c91-bb57-4e2167f4aa98' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "dfc3503f-3ace-4c91-bb57-4e2167f4aa98"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.607597"], ["updated_at", "2016-12-07 16:52:30.607597"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'dfc3503f-3ace-4c91-bb57-4e2167f4aa98', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.607597', "updated_at" = '2016-12-07 16:52:30.607597', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.613248', "updated_at" = '2016-12-07 16:52:30.613530', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'dfc3503f-3ace-4c91-bb57-4e2167f4aa98' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.623928"], ["updated_at", "2016-12-07 16:52:30.623928"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.625399"], ["updated_at", "2016-12-07 16:52:30.625399"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.626596"], ["updated_at", "2016-12-07 16:52:30.626596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.633235"], ["updated_at", "2016-12-07 16:52:30.633235"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.635442"], ["updated_at", "2016-12-07 16:52:30.635442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:52:30.642941"], ["updated_at", "2016-12-07 16:52:30.642941"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:52:30.645498"], ["updated_at", "2016-12-07 16:52:30.645498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '84fe6948-af97-4e49-9ab3-5ca26c4f3ad6' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "84fe6948-af97-4e49-9ab3-5ca26c4f3ad6"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.657691"], ["updated_at", "2016-12-07 16:52:30.657691"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '84fe6948-af97-4e49-9ab3-5ca26c4f3ad6', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.657691', "updated_at" = '2016-12-07 16:52:30.657691', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.662543', "updated_at" = '2016-12-07 16:52:30.662853', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '84fe6948-af97-4e49-9ab3-5ca26c4f3ad6' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:30.672822"], ["updated_at", "2016-12-07 16:52:30.672822"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.675242"], ["updated_at", "2016-12-07 16:52:30.675242"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:30.677662"], ["updated_at", "2016-12-07 16:52:30.677662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:30.687384"], ["updated_at", "2016-12-07 16:52:30.687384"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:30.689436"], ["updated_at", "2016-12-07 16:52:30.689436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '81359ea9-3bdf-44a2-9279-d4ccaf3f2e50' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "81359ea9-3bdf-44a2-9279-d4ccaf3f2e50"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:52:30.697617"], ["updated_at", "2016-12-07 16:52:30.697617"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '81359ea9-3bdf-44a2-9279-d4ccaf3f2e50', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:52:30.697617', "updated_at" = '2016-12-07 16:52:30.697617', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:52:30.702667', "updated_at" = '2016-12-07 16:52:30.702934', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '81359ea9-3bdf-44a2-9279-d4ccaf3f2e50' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:52:59.830061"], ["updated_at", "2016-12-07 16:52:59.830061"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:52:59.843031"], ["updated_at", "2016-12-07 16:52:59.843031"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:52:59.845175"], ["updated_at", "2016-12-07 16:52:59.845175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:52:59.962089"], ["updated_at", "2016-12-07 16:52:59.962089"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:52:59.969503"], ["updated_at", "2016-12-07 16:52:59.969503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.004707"], ["updated_at", "2016-12-07 16:53:00.004707"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.011636"], ["updated_at", "2016-12-07 16:53:00.011636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a095eab9-42b5-4d0d-89a6-6cac61d58234' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a095eab9-42b5-4d0d-89a6-6cac61d58234"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:53:00.013506"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:53:00.049099"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a095eab9-42b5-4d0d-89a6-6cac61d58234', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:53:00.013506', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:53:00.049099', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.053425', "updated_at" = '2016-12-07 16:53:00.053680', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a095eab9-42b5-4d0d-89a6-6cac61d58234' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.076685"], ["updated_at", "2016-12-07 16:53:00.076685"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.078474"], ["updated_at", "2016-12-07 16:53:00.078474"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.079673"], ["updated_at", "2016-12-07 16:53:00.079673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.087128"], ["updated_at", "2016-12-07 16:53:00.087128"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.089863"], ["updated_at", "2016-12-07 16:53:00.089863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.097474"], ["updated_at", "2016-12-07 16:53:00.097474"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.099890"], ["updated_at", "2016-12-07 16:53:00.099890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9be92c6b-0cde-4987-a99a-2a92c069192f' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9be92c6b-0cde-4987-a99a-2a92c069192f"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.109261"], ["updated_at", "2016-12-07 16:53:00.109261"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9be92c6b-0cde-4987-a99a-2a92c069192f', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.109261', "updated_at" = '2016-12-07 16:53:00.109261', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.113093', "updated_at" = '2016-12-07 16:53:00.113366', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9be92c6b-0cde-4987-a99a-2a92c069192f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.124133"], ["updated_at", "2016-12-07 16:53:00.124133"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.125565"], ["updated_at", "2016-12-07 16:53:00.125565"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.126617"], ["updated_at", "2016-12-07 16:53:00.126617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.132796"], ["updated_at", "2016-12-07 16:53:00.132796"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.134832"], ["updated_at", "2016-12-07 16:53:00.134832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.141565"], ["updated_at", "2016-12-07 16:53:00.141565"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.143413"], ["updated_at", "2016-12-07 16:53:00.143413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '69eef34d-c837-44ad-a69f-f60b9eae4ec2' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "69eef34d-c837-44ad-a69f-f60b9eae4ec2"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.151789"], ["updated_at", "2016-12-07 16:53:00.151789"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '69eef34d-c837-44ad-a69f-f60b9eae4ec2', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.151789', "updated_at" = '2016-12-07 16:53:00.151789', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.158616', "updated_at" = '2016-12-07 16:53:00.159075', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '69eef34d-c837-44ad-a69f-f60b9eae4ec2' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.171679"], ["updated_at", "2016-12-07 16:53:00.171679"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.173117"], ["updated_at", "2016-12-07 16:53:00.173117"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.174126"], ["updated_at", "2016-12-07 16:53:00.174126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.180080"], ["updated_at", "2016-12-07 16:53:00.180080"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.182167"], ["updated_at", "2016-12-07 16:53:00.182167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.189016"], ["updated_at", "2016-12-07 16:53:00.189016"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.190746"], ["updated_at", "2016-12-07 16:53:00.190746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '90a37111-b5f5-4a2d-baa2-431e159e4729' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "90a37111-b5f5-4a2d-baa2-431e159e4729"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.198563"], ["updated_at", "2016-12-07 16:53:00.198563"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '90a37111-b5f5-4a2d-baa2-431e159e4729', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.198563', "updated_at" = '2016-12-07 16:53:00.198563', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.202848', "updated_at" = '2016-12-07 16:53:00.203804', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '90a37111-b5f5-4a2d-baa2-431e159e4729' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.218390"], ["updated_at", "2016-12-07 16:53:00.218390"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.219926"], ["updated_at", "2016-12-07 16:53:00.219926"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.221049"], ["updated_at", "2016-12-07 16:53:00.221049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.229891"], ["updated_at", "2016-12-07 16:53:00.229891"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.233465"], ["updated_at", "2016-12-07 16:53:00.233465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.241484"], ["updated_at", "2016-12-07 16:53:00.241484"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.243200"], ["updated_at", "2016-12-07 16:53:00.243200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e8b1e217-9b13-4626-87ba-26a43b061b9f' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e8b1e217-9b13-4626-87ba-26a43b061b9f"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.270932"], ["updated_at", "2016-12-07 16:53:00.270932"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e8b1e217-9b13-4626-87ba-26a43b061b9f', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.270932', "updated_at" = '2016-12-07 16:53:00.270932', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.274637', "updated_at" = '2016-12-07 16:53:00.274873', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e8b1e217-9b13-4626-87ba-26a43b061b9f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.284156"], ["updated_at", "2016-12-07 16:53:00.284156"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.285543"], ["updated_at", "2016-12-07 16:53:00.285543"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.286643"], ["updated_at", "2016-12-07 16:53:00.286643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.293786"], ["updated_at", "2016-12-07 16:53:00.293786"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.297503"], ["updated_at", "2016-12-07 16:53:00.297503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.308998"], ["updated_at", "2016-12-07 16:53:00.308998"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.311999"], ["updated_at", "2016-12-07 16:53:00.311999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ed8a9333-c419-427f-8b57-215f3924092d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ed8a9333-c419-427f-8b57-215f3924092d"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.320504"], ["updated_at", "2016-12-07 16:53:00.320504"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ed8a9333-c419-427f-8b57-215f3924092d', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.320504', "updated_at" = '2016-12-07 16:53:00.320504', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.324098', "updated_at" = '2016-12-07 16:53:00.324332', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ed8a9333-c419-427f-8b57-215f3924092d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.335827"], ["updated_at", "2016-12-07 16:53:00.335827"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.338228"], ["updated_at", "2016-12-07 16:53:00.338228"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.339942"], ["updated_at", "2016-12-07 16:53:00.339942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.347219"], ["updated_at", "2016-12-07 16:53:00.347219"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.349737"], ["updated_at", "2016-12-07 16:53:00.349737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.358921"], ["updated_at", "2016-12-07 16:53:00.358921"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.360834"], ["updated_at", "2016-12-07 16:53:00.360834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'da9b9986-38a1-4a06-99d8-dd1234e5212a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "da9b9986-38a1-4a06-99d8-dd1234e5212a"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.369580"], ["updated_at", "2016-12-07 16:53:00.369580"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'da9b9986-38a1-4a06-99d8-dd1234e5212a', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.369580', "updated_at" = '2016-12-07 16:53:00.369580', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.373511', "updated_at" = '2016-12-07 16:53:00.373764', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'da9b9986-38a1-4a06-99d8-dd1234e5212a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.383451"], ["updated_at", "2016-12-07 16:53:00.383451"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.384868"], ["updated_at", "2016-12-07 16:53:00.384868"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.385938"], ["updated_at", "2016-12-07 16:53:00.385938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.391800"], ["updated_at", "2016-12-07 16:53:00.391800"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.393949"], ["updated_at", "2016-12-07 16:53:00.393949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.401836"], ["updated_at", "2016-12-07 16:53:00.401836"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.404699"], ["updated_at", "2016-12-07 16:53:00.404699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '858aaf88-2043-4ff5-a6c9-701d31fa673e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "858aaf88-2043-4ff5-a6c9-701d31fa673e"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.412785"], ["updated_at", "2016-12-07 16:53:00.412785"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '858aaf88-2043-4ff5-a6c9-701d31fa673e', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.412785', "updated_at" = '2016-12-07 16:53:00.412785', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.416572', "updated_at" = '2016-12-07 16:53:00.416915', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '858aaf88-2043-4ff5-a6c9-701d31fa673e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.429862"], ["updated_at", "2016-12-07 16:53:00.429862"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.432259"], ["updated_at", "2016-12-07 16:53:00.432259"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.433946"], ["updated_at", "2016-12-07 16:53:00.433946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.441236"], ["updated_at", "2016-12-07 16:53:00.441236"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.443166"], ["updated_at", "2016-12-07 16:53:00.443166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.451266"], ["updated_at", "2016-12-07 16:53:00.451266"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.455362"], ["updated_at", "2016-12-07 16:53:00.455362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'eb7dd09b-de93-4b92-8904-3ec6a592b3c8' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "eb7dd09b-de93-4b92-8904-3ec6a592b3c8"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.464607"], ["updated_at", "2016-12-07 16:53:00.464607"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'eb7dd09b-de93-4b92-8904-3ec6a592b3c8', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.464607', "updated_at" = '2016-12-07 16:53:00.464607', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.469476', "updated_at" = '2016-12-07 16:53:00.469875', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'eb7dd09b-de93-4b92-8904-3ec6a592b3c8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.480087"], ["updated_at", "2016-12-07 16:53:00.480087"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.481629"], ["updated_at", "2016-12-07 16:53:00.481629"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.482768"], ["updated_at", "2016-12-07 16:53:00.482768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.490616"], ["updated_at", "2016-12-07 16:53:00.490616"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.494984"], ["updated_at", "2016-12-07 16:53:00.494984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:00.507965"], ["updated_at", "2016-12-07 16:53:00.507965"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:00.510153"], ["updated_at", "2016-12-07 16:53:00.510153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '22f7e0ae-eeda-4692-a53f-99cad1f8cae0' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "22f7e0ae-eeda-4692-a53f-99cad1f8cae0"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.518759"], ["updated_at", "2016-12-07 16:53:00.518759"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '22f7e0ae-eeda-4692-a53f-99cad1f8cae0', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.518759', "updated_at" = '2016-12-07 16:53:00.518759', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.523385', "updated_at" = '2016-12-07 16:53:00.523659', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '22f7e0ae-eeda-4692-a53f-99cad1f8cae0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:00.535939"], ["updated_at", "2016-12-07 16:53:00.535939"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.538477"], ["updated_at", "2016-12-07 16:53:00.538477"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:00.540227"], ["updated_at", "2016-12-07 16:53:00.540227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:00.549348"], ["updated_at", "2016-12-07 16:53:00.549348"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:00.551864"], ["updated_at", "2016-12-07 16:53:00.551864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f8b67f34-bc43-4d0a-9795-88e075ebef7f' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f8b67f34-bc43-4d0a-9795-88e075ebef7f"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:00.560940"], ["updated_at", "2016-12-07 16:53:00.560940"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f8b67f34-bc43-4d0a-9795-88e075ebef7f', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:00.560940', "updated_at" = '2016-12-07 16:53:00.560940', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:00.564642', "updated_at" = '2016-12-07 16:53:00.564856', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f8b67f34-bc43-4d0a-9795-88e075ebef7f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:43.823505"], ["updated_at", "2016-12-07 16:53:43.823505"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:43.836568"], ["updated_at", "2016-12-07 16:53:43.836568"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:43.838258"], ["updated_at", "2016-12-07 16:53:43.838258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:43.963671"], ["updated_at", "2016-12-07 16:53:43.963671"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:43.971560"], ["updated_at", "2016-12-07 16:53:43.971560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.013034"], ["updated_at", "2016-12-07 16:53:44.013034"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.019745"], ["updated_at", "2016-12-07 16:53:44.019745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6d6d4778-3849-41fe-bddb-998a43214e42' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6d6d4778-3849-41fe-bddb-998a43214e42"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:53:44.021710"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:53:44.056211"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6d6d4778-3849-41fe-bddb-998a43214e42', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:53:44.021710', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:53:44.056211', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.060542', "updated_at" = '2016-12-07 16:53:44.060791', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6d6d4778-3849-41fe-bddb-998a43214e42' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ee2715ba-0a64-4454-933b-4db8032cfba1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ee2715ba-0a64-4454-933b-4db8032cfba1"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:53:44.080482"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:53:44.087685"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ee2715ba-0a64-4454-933b-4db8032cfba1', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:53:44.080482', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:53:44.087685', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.3ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.091844', "updated_at" = '2016-12-07 16:53:44.092126', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ee2715ba-0a64-4454-933b-4db8032cfba1' AND "ems_registrations"."id" != 2) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.101612"], ["updated_at", "2016-12-07 16:53:44.101612"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.103545"], ["updated_at", "2016-12-07 16:53:44.103545"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.104855"], ["updated_at", "2016-12-07 16:53:44.104855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.112883"], ["updated_at", "2016-12-07 16:53:44.112883"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.115435"], ["updated_at", "2016-12-07 16:53:44.115435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.124181"], ["updated_at", "2016-12-07 16:53:44.124181"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.126324"], ["updated_at", "2016-12-07 16:53:44.126324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7890c311-6a57-448f-a737-223325987bc6' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7890c311-6a57-448f-a737-223325987bc6"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.134709"], ["updated_at", "2016-12-07 16:53:44.134709"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7890c311-6a57-448f-a737-223325987bc6', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.134709', "updated_at" = '2016-12-07 16:53:44.134709', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.138846', "updated_at" = '2016-12-07 16:53:44.139159', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7890c311-6a57-448f-a737-223325987bc6' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.149331"], ["updated_at", "2016-12-07 16:53:44.149331"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.150871"], ["updated_at", "2016-12-07 16:53:44.150871"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.152062"], ["updated_at", "2016-12-07 16:53:44.152062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.159276"], ["updated_at", "2016-12-07 16:53:44.159276"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.162941"], ["updated_at", "2016-12-07 16:53:44.162941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.170855"], ["updated_at", "2016-12-07 16:53:44.170855"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.173404"], ["updated_at", "2016-12-07 16:53:44.173404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ca980136-5e00-4a30-b267-f847597cbc85' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ca980136-5e00-4a30-b267-f847597cbc85"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.181634"], ["updated_at", "2016-12-07 16:53:44.181634"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ca980136-5e00-4a30-b267-f847597cbc85', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.181634', "updated_at" = '2016-12-07 16:53:44.181634', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.185228', "updated_at" = '2016-12-07 16:53:44.185464', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ca980136-5e00-4a30-b267-f847597cbc85' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.196631"], ["updated_at", "2016-12-07 16:53:44.196631"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.199092"], ["updated_at", "2016-12-07 16:53:44.199092"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.200789"], ["updated_at", "2016-12-07 16:53:44.200789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.208994"], ["updated_at", "2016-12-07 16:53:44.208994"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.212105"], ["updated_at", "2016-12-07 16:53:44.212105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.220071"], ["updated_at", "2016-12-07 16:53:44.220071"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.222472"], ["updated_at", "2016-12-07 16:53:44.222472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a78f6f3a-ff80-4416-a18d-51e88f9d8453' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a78f6f3a-ff80-4416-a18d-51e88f9d8453"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.231296"], ["updated_at", "2016-12-07 16:53:44.231296"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.4ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a78f6f3a-ff80-4416-a18d-51e88f9d8453', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.231296', "updated_at" = '2016-12-07 16:53:44.231296', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.235952', "updated_at" = '2016-12-07 16:53:44.236438', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a78f6f3a-ff80-4416-a18d-51e88f9d8453' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.250986"], ["updated_at", "2016-12-07 16:53:44.250986"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.252533"], ["updated_at", "2016-12-07 16:53:44.252533"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.253695"], ["updated_at", "2016-12-07 16:53:44.253695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.260897"], ["updated_at", "2016-12-07 16:53:44.260897"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.283700"], ["updated_at", "2016-12-07 16:53:44.283700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.290344"], ["updated_at", "2016-12-07 16:53:44.290344"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.292087"], ["updated_at", "2016-12-07 16:53:44.292087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0b67329a-ad44-4d30-89be-10e9061bcfb9' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0b67329a-ad44-4d30-89be-10e9061bcfb9"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.299516"], ["updated_at", "2016-12-07 16:53:44.299516"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0b67329a-ad44-4d30-89be-10e9061bcfb9', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.299516', "updated_at" = '2016-12-07 16:53:44.299516', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.303184', "updated_at" = '2016-12-07 16:53:44.303444', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0b67329a-ad44-4d30-89be-10e9061bcfb9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.318966"], ["updated_at", "2016-12-07 16:53:44.318966"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.320343"], ["updated_at", "2016-12-07 16:53:44.320343"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.321415"], ["updated_at", "2016-12-07 16:53:44.321415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.327787"], ["updated_at", "2016-12-07 16:53:44.327787"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.330107"], ["updated_at", "2016-12-07 16:53:44.330107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.337207"], ["updated_at", "2016-12-07 16:53:44.337207"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.339077"], ["updated_at", "2016-12-07 16:53:44.339077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8734a124-7f2c-4b0e-a47e-89f4559081a4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8734a124-7f2c-4b0e-a47e-89f4559081a4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.346746"], ["updated_at", "2016-12-07 16:53:44.346746"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8734a124-7f2c-4b0e-a47e-89f4559081a4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.346746', "updated_at" = '2016-12-07 16:53:44.346746', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.350241', "updated_at" = '2016-12-07 16:53:44.350476', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8734a124-7f2c-4b0e-a47e-89f4559081a4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.366524"], ["updated_at", "2016-12-07 16:53:44.366524"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.368609"], ["updated_at", "2016-12-07 16:53:44.368609"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.369780"], ["updated_at", "2016-12-07 16:53:44.369780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.377382"], ["updated_at", "2016-12-07 16:53:44.377382"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.379643"], ["updated_at", "2016-12-07 16:53:44.379643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.386639"], ["updated_at", "2016-12-07 16:53:44.386639"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.388451"], ["updated_at", "2016-12-07 16:53:44.388451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '99a65725-9378-4cd3-9b81-3964890ecd0d' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "99a65725-9378-4cd3-9b81-3964890ecd0d"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.395896"], ["updated_at", "2016-12-07 16:53:44.395896"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '99a65725-9378-4cd3-9b81-3964890ecd0d', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.395896', "updated_at" = '2016-12-07 16:53:44.395896', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.399514', "updated_at" = '2016-12-07 16:53:44.399770', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '99a65725-9378-4cd3-9b81-3964890ecd0d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.409174"], ["updated_at", "2016-12-07 16:53:44.409174"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.410861"], ["updated_at", "2016-12-07 16:53:44.410861"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.413814"], ["updated_at", "2016-12-07 16:53:44.413814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.423371"], ["updated_at", "2016-12-07 16:53:44.423371"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.425808"], ["updated_at", "2016-12-07 16:53:44.425808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.433202"], ["updated_at", "2016-12-07 16:53:44.433202"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.434975"], ["updated_at", "2016-12-07 16:53:44.434975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b10b5ad5-246f-4970-95fc-8cc4a9d5f9e7' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b10b5ad5-246f-4970-95fc-8cc4a9d5f9e7"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.448358"], ["updated_at", "2016-12-07 16:53:44.448358"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b10b5ad5-246f-4970-95fc-8cc4a9d5f9e7', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.448358', "updated_at" = '2016-12-07 16:53:44.448358', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.452178', "updated_at" = '2016-12-07 16:53:44.452445', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b10b5ad5-246f-4970-95fc-8cc4a9d5f9e7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.464092"], ["updated_at", "2016-12-07 16:53:44.464092"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.465631"], ["updated_at", "2016-12-07 16:53:44.465631"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.467273"], ["updated_at", "2016-12-07 16:53:44.467273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.3ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.476272"], ["updated_at", "2016-12-07 16:53:44.476272"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.480284"], ["updated_at", "2016-12-07 16:53:44.480284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.488671"], ["updated_at", "2016-12-07 16:53:44.488671"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.490472"], ["updated_at", "2016-12-07 16:53:44.490472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '539f87c7-d97b-4be3-b27e-9d70638aea25' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "539f87c7-d97b-4be3-b27e-9d70638aea25"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.498268"], ["updated_at", "2016-12-07 16:53:44.498268"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '539f87c7-d97b-4be3-b27e-9d70638aea25', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.498268', "updated_at" = '2016-12-07 16:53:44.498268', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.501935', "updated_at" = '2016-12-07 16:53:44.502193', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '539f87c7-d97b-4be3-b27e-9d70638aea25' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.518988"], ["updated_at", "2016-12-07 16:53:44.518988"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.520519"], ["updated_at", "2016-12-07 16:53:44.520519"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.521628"], ["updated_at", "2016-12-07 16:53:44.521628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.528943"], ["updated_at", "2016-12-07 16:53:44.528943"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.530990"], ["updated_at", "2016-12-07 16:53:44.530990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:53:44.538106"], ["updated_at", "2016-12-07 16:53:44.538106"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:53:44.540090"], ["updated_at", "2016-12-07 16:53:44.540090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '23a39788-1ae5-4aab-aaba-befc7f11d10d' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "23a39788-1ae5-4aab-aaba-befc7f11d10d"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.547607"], ["updated_at", "2016-12-07 16:53:44.547607"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '23a39788-1ae5-4aab-aaba-befc7f11d10d', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.547607', "updated_at" = '2016-12-07 16:53:44.547607', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.551195', "updated_at" = '2016-12-07 16:53:44.551463', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '23a39788-1ae5-4aab-aaba-befc7f11d10d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:53:44.562803"], ["updated_at", "2016-12-07 16:53:44.562803"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.564486"], ["updated_at", "2016-12-07 16:53:44.564486"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:53:44.565629"], ["updated_at", "2016-12-07 16:53:44.565629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:53:44.574480"], ["updated_at", "2016-12-07 16:53:44.574480"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:53:44.578843"], ["updated_at", "2016-12-07 16:53:44.578843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c9de1125-7ac3-479e-a4df-0adc591f1598' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c9de1125-7ac3-479e-a4df-0adc591f1598"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:53:44.587520"], ["updated_at", "2016-12-07 16:53:44.587520"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c9de1125-7ac3-479e-a4df-0adc591f1598', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:53:44.587520', "updated_at" = '2016-12-07 16:53:44.587520', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:53:44.592230', "updated_at" = '2016-12-07 16:53:44.592442', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c9de1125-7ac3-479e-a4df-0adc591f1598' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:46.995072"], ["updated_at", "2016-12-07 16:55:46.995072"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.011310"], ["updated_at", "2016-12-07 16:55:47.011310"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.013016"], ["updated_at", "2016-12-07 16:55:47.013016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.149303"], ["updated_at", "2016-12-07 16:55:47.149303"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.157822"], ["updated_at", "2016-12-07 16:55:47.157822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.200379"], ["updated_at", "2016-12-07 16:55:47.200379"]] SQL (0.4ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.209874"], ["updated_at", "2016-12-07 16:55:47.209874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.4ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '92cb7d52-4b1b-47a5-a8de-8ab87a49da77' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "92cb7d52-4b1b-47a5-a8de-8ab87a49da77"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:55:47.213266"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:55:47.258990"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '92cb7d52-4b1b-47a5-a8de-8ab87a49da77', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:55:47.213266', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:55:47.258990', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.263196', "updated_at" = '2016-12-07 16:55:47.263467', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '92cb7d52-4b1b-47a5-a8de-8ab87a49da77' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '987329ac-120c-490e-9696-b93d137dfd20' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "987329ac-120c-490e-9696-b93d137dfd20"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:55:47.282001"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:55:47.288372"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '987329ac-120c-490e-9696-b93d137dfd20', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:55:47.282001', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:55:47.288372', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.292087', "updated_at" = '2016-12-07 16:55:47.292378', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '987329ac-120c-490e-9696-b93d137dfd20' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2422c0fa-5013-44c0-8038-beb8482cd4fe' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2422c0fa-5013-44c0-8038-beb8482cd4fe"], ["amount_paid_cents", 50000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.302764"], ["updated_at", "2016-12-07 16:55:47.302764"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2422c0fa-5013-44c0-8038-beb8482cd4fe', "amount_paid_cents" = 50000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.302764', "updated_at" = '2016-12-07 16:55:47.302764', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.306846', "updated_at" = '2016-12-07 16:55:47.307098', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2422c0fa-5013-44c0-8038-beb8482cd4fe' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.316357"], ["updated_at", "2016-12-07 16:55:47.316357"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.317960"], ["updated_at", "2016-12-07 16:55:47.317960"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.319149"], ["updated_at", "2016-12-07 16:55:47.319149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.325682"], ["updated_at", "2016-12-07 16:55:47.325682"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.328103"], ["updated_at", "2016-12-07 16:55:47.328103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.337447"], ["updated_at", "2016-12-07 16:55:47.337447"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.340999"], ["updated_at", "2016-12-07 16:55:47.340999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1684d3f8-9ee7-433b-a45b-ac35af5bd6db' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1684d3f8-9ee7-433b-a45b-ac35af5bd6db"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.351549"], ["updated_at", "2016-12-07 16:55:47.351549"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.7ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1684d3f8-9ee7-433b-a45b-ac35af5bd6db', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.351549', "updated_at" = '2016-12-07 16:55:47.351549', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.357575', "updated_at" = '2016-12-07 16:55:47.357969', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1684d3f8-9ee7-433b-a45b-ac35af5bd6db' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.368355"], ["updated_at", "2016-12-07 16:55:47.368355"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.369890"], ["updated_at", "2016-12-07 16:55:47.369890"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.371137"], ["updated_at", "2016-12-07 16:55:47.371137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.378688"], ["updated_at", "2016-12-07 16:55:47.378688"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.380662"], ["updated_at", "2016-12-07 16:55:47.380662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.394330"], ["updated_at", "2016-12-07 16:55:47.394330"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.397354"], ["updated_at", "2016-12-07 16:55:47.397354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cab3739c-cde8-4ad3-9cd3-1687dd21d8df' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cab3739c-cde8-4ad3-9cd3-1687dd21d8df"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.408502"], ["updated_at", "2016-12-07 16:55:47.408502"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cab3739c-cde8-4ad3-9cd3-1687dd21d8df', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.408502', "updated_at" = '2016-12-07 16:55:47.408502', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.412740', "updated_at" = '2016-12-07 16:55:47.413036', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cab3739c-cde8-4ad3-9cd3-1687dd21d8df' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.423618"], ["updated_at", "2016-12-07 16:55:47.423618"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.425648"], ["updated_at", "2016-12-07 16:55:47.425648"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.426793"], ["updated_at", "2016-12-07 16:55:47.426793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.433486"], ["updated_at", "2016-12-07 16:55:47.433486"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.435646"], ["updated_at", "2016-12-07 16:55:47.435646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.442862"], ["updated_at", "2016-12-07 16:55:47.442862"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.444760"], ["updated_at", "2016-12-07 16:55:47.444760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3f24318f-4e3d-4637-9f73-0c00b6bbecd1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3f24318f-4e3d-4637-9f73-0c00b6bbecd1"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.452739"], ["updated_at", "2016-12-07 16:55:47.452739"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.6ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3f24318f-4e3d-4637-9f73-0c00b6bbecd1', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.452739', "updated_at" = '2016-12-07 16:55:47.452739', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.458874', "updated_at" = '2016-12-07 16:55:47.459511', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3f24318f-4e3d-4637-9f73-0c00b6bbecd1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.492540"], ["updated_at", "2016-12-07 16:55:47.492540"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.494961"], ["updated_at", "2016-12-07 16:55:47.494961"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.496654"], ["updated_at", "2016-12-07 16:55:47.496654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.504913"], ["updated_at", "2016-12-07 16:55:47.504913"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.508596"], ["updated_at", "2016-12-07 16:55:47.508596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.516761"], ["updated_at", "2016-12-07 16:55:47.516761"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.518576"], ["updated_at", "2016-12-07 16:55:47.518576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '23165810-f68b-40c5-9cbc-ab646958b13e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "23165810-f68b-40c5-9cbc-ab646958b13e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.527557"], ["updated_at", "2016-12-07 16:55:47.527557"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '23165810-f68b-40c5-9cbc-ab646958b13e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.527557', "updated_at" = '2016-12-07 16:55:47.527557', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.531527', "updated_at" = '2016-12-07 16:55:47.531761', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '23165810-f68b-40c5-9cbc-ab646958b13e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.541000"], ["updated_at", "2016-12-07 16:55:47.541000"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.542354"], ["updated_at", "2016-12-07 16:55:47.542354"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.543392"], ["updated_at", "2016-12-07 16:55:47.543392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.549575"], ["updated_at", "2016-12-07 16:55:47.549575"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.552317"], ["updated_at", "2016-12-07 16:55:47.552317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.561260"], ["updated_at", "2016-12-07 16:55:47.561260"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.563124"], ["updated_at", "2016-12-07 16:55:47.563124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'bbf61ead-1699-4d37-8c15-402760f594c9' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "bbf61ead-1699-4d37-8c15-402760f594c9"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.570427"], ["updated_at", "2016-12-07 16:55:47.570427"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'bbf61ead-1699-4d37-8c15-402760f594c9', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.570427', "updated_at" = '2016-12-07 16:55:47.570427', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.576742', "updated_at" = '2016-12-07 16:55:47.577437', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'bbf61ead-1699-4d37-8c15-402760f594c9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.590344"], ["updated_at", "2016-12-07 16:55:47.590344"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.591818"], ["updated_at", "2016-12-07 16:55:47.591818"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.592934"], ["updated_at", "2016-12-07 16:55:47.592934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.599118"], ["updated_at", "2016-12-07 16:55:47.599118"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.604537"], ["updated_at", "2016-12-07 16:55:47.604537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.615529"], ["updated_at", "2016-12-07 16:55:47.615529"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.617400"], ["updated_at", "2016-12-07 16:55:47.617400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '776c0426-83b7-41b0-85c6-3bf951328dae' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "776c0426-83b7-41b0-85c6-3bf951328dae"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.626374"], ["updated_at", "2016-12-07 16:55:47.626374"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '776c0426-83b7-41b0-85c6-3bf951328dae', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.626374', "updated_at" = '2016-12-07 16:55:47.626374', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.630404', "updated_at" = '2016-12-07 16:55:47.630658', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '776c0426-83b7-41b0-85c6-3bf951328dae' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.639644"], ["updated_at", "2016-12-07 16:55:47.639644"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.641048"], ["updated_at", "2016-12-07 16:55:47.641048"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.642168"], ["updated_at", "2016-12-07 16:55:47.642168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.648061"], ["updated_at", "2016-12-07 16:55:47.648061"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.650252"], ["updated_at", "2016-12-07 16:55:47.650252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.660753"], ["updated_at", "2016-12-07 16:55:47.660753"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.663458"], ["updated_at", "2016-12-07 16:55:47.663458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0d87c027-3ce9-41e8-88ca-42da2adab6fd' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0d87c027-3ce9-41e8-88ca-42da2adab6fd"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.671376"], ["updated_at", "2016-12-07 16:55:47.671376"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0d87c027-3ce9-41e8-88ca-42da2adab6fd', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.671376', "updated_at" = '2016-12-07 16:55:47.671376', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.676811', "updated_at" = '2016-12-07 16:55:47.677163', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0d87c027-3ce9-41e8-88ca-42da2adab6fd' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.689248"], ["updated_at", "2016-12-07 16:55:47.689248"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.691421"], ["updated_at", "2016-12-07 16:55:47.691421"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.693267"], ["updated_at", "2016-12-07 16:55:47.693267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.700402"], ["updated_at", "2016-12-07 16:55:47.700402"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.702869"], ["updated_at", "2016-12-07 16:55:47.702869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.711999"], ["updated_at", "2016-12-07 16:55:47.711999"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.714033"], ["updated_at", "2016-12-07 16:55:47.714033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'bad98249-90f9-4e2b-a60a-a00dcb53966d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "bad98249-90f9-4e2b-a60a-a00dcb53966d"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.723017"], ["updated_at", "2016-12-07 16:55:47.723017"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'bad98249-90f9-4e2b-a60a-a00dcb53966d', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.723017', "updated_at" = '2016-12-07 16:55:47.723017', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.730356', "updated_at" = '2016-12-07 16:55:47.730886', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'bad98249-90f9-4e2b-a60a-a00dcb53966d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.743516"], ["updated_at", "2016-12-07 16:55:47.743516"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.744957"], ["updated_at", "2016-12-07 16:55:47.744957"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.746068"], ["updated_at", "2016-12-07 16:55:47.746068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.753663"], ["updated_at", "2016-12-07 16:55:47.753663"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.757927"], ["updated_at", "2016-12-07 16:55:47.757927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:55:47.767857"], ["updated_at", "2016-12-07 16:55:47.767857"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:55:47.769679"], ["updated_at", "2016-12-07 16:55:47.769679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9b81d091-e316-4b9f-a7ac-f228ab277896' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9b81d091-e316-4b9f-a7ac-f228ab277896"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.778702"], ["updated_at", "2016-12-07 16:55:47.778702"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9b81d091-e316-4b9f-a7ac-f228ab277896', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.778702', "updated_at" = '2016-12-07 16:55:47.778702', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.782677', "updated_at" = '2016-12-07 16:55:47.782969', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9b81d091-e316-4b9f-a7ac-f228ab277896' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:55:47.801122"], ["updated_at", "2016-12-07 16:55:47.801122"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.803608"], ["updated_at", "2016-12-07 16:55:47.803608"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:55:47.805282"], ["updated_at", "2016-12-07 16:55:47.805282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:55:47.814236"], ["updated_at", "2016-12-07 16:55:47.814236"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:55:47.816326"], ["updated_at", "2016-12-07 16:55:47.816326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4174d8aa-5926-478c-adc5-a1da5b9bce33' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4174d8aa-5926-478c-adc5-a1da5b9bce33"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:55:47.823171"], ["updated_at", "2016-12-07 16:55:47.823171"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4174d8aa-5926-478c-adc5-a1da5b9bce33', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:55:47.823171', "updated_at" = '2016-12-07 16:55:47.823171', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:55:47.828948', "updated_at" = '2016-12-07 16:55:47.829522', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4174d8aa-5926-478c-adc5-a1da5b9bce33' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:02.595499"], ["updated_at", "2016-12-07 16:56:02.595499"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.614763"], ["updated_at", "2016-12-07 16:56:02.614763"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.616322"], ["updated_at", "2016-12-07 16:56:02.616322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:02.733626"], ["updated_at", "2016-12-07 16:56:02.733626"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:02.741010"], ["updated_at", "2016-12-07 16:56:02.741010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:02.774728"], ["updated_at", "2016-12-07 16:56:02.774728"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:02.781195"], ["updated_at", "2016-12-07 16:56:02.781195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a3b5457e-299a-4d7a-892b-2bf0865facbb' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a3b5457e-299a-4d7a-892b-2bf0865facbb"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:56:02.782873"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:56:02.818474"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a3b5457e-299a-4d7a-892b-2bf0865facbb', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:56:02.782873', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:56:02.818474', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:02.822597', "updated_at" = '2016-12-07 16:56:02.822892', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a3b5457e-299a-4d7a-892b-2bf0865facbb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '71cc9283-a2c6-49e8-bedd-c2cb3c57291e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "71cc9283-a2c6-49e8-bedd-c2cb3c57291e"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:56:02.840219"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:56:02.845909"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '71cc9283-a2c6-49e8-bedd-c2cb3c57291e', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:56:02.840219', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:56:02.845909', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:02.849334', "updated_at" = '2016-12-07 16:56:02.849592', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '71cc9283-a2c6-49e8-bedd-c2cb3c57291e' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b6fb60bc-4454-492d-a035-82db111f9c3c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b6fb60bc-4454-492d-a035-82db111f9c3c"], ["amount_paid_cents", 30000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:02.859608"], ["updated_at", "2016-12-07 16:56:02.859608"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b6fb60bc-4454-492d-a035-82db111f9c3c', "amount_paid_cents" = 30000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:02.859608', "updated_at" = '2016-12-07 16:56:02.859608', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:02.863060', "updated_at" = '2016-12-07 16:56:02.863321', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b6fb60bc-4454-492d-a035-82db111f9c3c' AND "ems_registrations"."id" != 3) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:02.875787"], ["updated_at", "2016-12-07 16:56:02.875787"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.878236"], ["updated_at", "2016-12-07 16:56:02.878236"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.880297"], ["updated_at", "2016-12-07 16:56:02.880297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:02.890237"], ["updated_at", "2016-12-07 16:56:02.890237"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:02.892258"], ["updated_at", "2016-12-07 16:56:02.892258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:02.900620"], ["updated_at", "2016-12-07 16:56:02.900620"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:02.903020"], ["updated_at", "2016-12-07 16:56:02.903020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3a77e0a7-e61c-4c61-ae49-4ebb9ae9122a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3a77e0a7-e61c-4c61-ae49-4ebb9ae9122a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:02.915626"], ["updated_at", "2016-12-07 16:56:02.915626"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3a77e0a7-e61c-4c61-ae49-4ebb9ae9122a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:02.915626', "updated_at" = '2016-12-07 16:56:02.915626', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:02.919129', "updated_at" = '2016-12-07 16:56:02.919364', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3a77e0a7-e61c-4c61-ae49-4ebb9ae9122a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:02.928754"], ["updated_at", "2016-12-07 16:56:02.928754"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.930484"], ["updated_at", "2016-12-07 16:56:02.930484"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.931661"], ["updated_at", "2016-12-07 16:56:02.931661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:02.939126"], ["updated_at", "2016-12-07 16:56:02.939126"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:02.941176"], ["updated_at", "2016-12-07 16:56:02.941176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:02.948446"], ["updated_at", "2016-12-07 16:56:02.948446"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:02.950806"], ["updated_at", "2016-12-07 16:56:02.950806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ba4434b1-d1b0-441a-aaee-683c56fbeb35' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ba4434b1-d1b0-441a-aaee-683c56fbeb35"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:02.964786"], ["updated_at", "2016-12-07 16:56:02.964786"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ba4434b1-d1b0-441a-aaee-683c56fbeb35', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:02.964786', "updated_at" = '2016-12-07 16:56:02.964786', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:02.968459', "updated_at" = '2016-12-07 16:56:02.968690', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ba4434b1-d1b0-441a-aaee-683c56fbeb35' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:02.983434"], ["updated_at", "2016-12-07 16:56:02.983434"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.985582"], ["updated_at", "2016-12-07 16:56:02.985582"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:02.987229"], ["updated_at", "2016-12-07 16:56:02.987229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:02.993858"], ["updated_at", "2016-12-07 16:56:02.993858"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:02.995825"], ["updated_at", "2016-12-07 16:56:02.995825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.002497"], ["updated_at", "2016-12-07 16:56:03.002497"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.004466"], ["updated_at", "2016-12-07 16:56:03.004466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3ebb867b-4da3-4cda-8856-5c8ebc19e012' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3ebb867b-4da3-4cda-8856-5c8ebc19e012"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.012543"], ["updated_at", "2016-12-07 16:56:03.012543"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3ebb867b-4da3-4cda-8856-5c8ebc19e012', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.012543', "updated_at" = '2016-12-07 16:56:03.012543', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.020245', "updated_at" = '2016-12-07 16:56:03.020666', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3ebb867b-4da3-4cda-8856-5c8ebc19e012' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.050824"], ["updated_at", "2016-12-07 16:56:03.050824"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.052614"], ["updated_at", "2016-12-07 16:56:03.052614"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.053880"], ["updated_at", "2016-12-07 16:56:03.053880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.060089"], ["updated_at", "2016-12-07 16:56:03.060089"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.062218"], ["updated_at", "2016-12-07 16:56:03.062218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.068616"], ["updated_at", "2016-12-07 16:56:03.068616"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.070280"], ["updated_at", "2016-12-07 16:56:03.070280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a7fa4356-b1a2-44bf-b3bb-0762ebed461c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a7fa4356-b1a2-44bf-b3bb-0762ebed461c"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.078699"], ["updated_at", "2016-12-07 16:56:03.078699"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a7fa4356-b1a2-44bf-b3bb-0762ebed461c', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.078699', "updated_at" = '2016-12-07 16:56:03.078699', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.084098', "updated_at" = '2016-12-07 16:56:03.084525', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a7fa4356-b1a2-44bf-b3bb-0762ebed461c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.097578"], ["updated_at", "2016-12-07 16:56:03.097578"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.100130"], ["updated_at", "2016-12-07 16:56:03.100130"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.101931"], ["updated_at", "2016-12-07 16:56:03.101931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.111069"], ["updated_at", "2016-12-07 16:56:03.111069"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.113233"], ["updated_at", "2016-12-07 16:56:03.113233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.120158"], ["updated_at", "2016-12-07 16:56:03.120158"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.122034"], ["updated_at", "2016-12-07 16:56:03.122034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '814aa153-e4f3-4b9c-ab06-01204494b780' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "814aa153-e4f3-4b9c-ab06-01204494b780"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.130316"], ["updated_at", "2016-12-07 16:56:03.130316"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '814aa153-e4f3-4b9c-ab06-01204494b780', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.130316', "updated_at" = '2016-12-07 16:56:03.130316', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.135436', "updated_at" = '2016-12-07 16:56:03.135705', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '814aa153-e4f3-4b9c-ab06-01204494b780' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.147385"], ["updated_at", "2016-12-07 16:56:03.147385"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.148955"], ["updated_at", "2016-12-07 16:56:03.148955"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.150130"], ["updated_at", "2016-12-07 16:56:03.150130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.158476"], ["updated_at", "2016-12-07 16:56:03.158476"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.160540"], ["updated_at", "2016-12-07 16:56:03.160540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.167334"], ["updated_at", "2016-12-07 16:56:03.167334"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.169123"], ["updated_at", "2016-12-07 16:56:03.169123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4a2369fd-16eb-4a75-bc94-e7bb9031c1ac' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4a2369fd-16eb-4a75-bc94-e7bb9031c1ac"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.176496"], ["updated_at", "2016-12-07 16:56:03.176496"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4a2369fd-16eb-4a75-bc94-e7bb9031c1ac', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.176496', "updated_at" = '2016-12-07 16:56:03.176496', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.180847', "updated_at" = '2016-12-07 16:56:03.181153', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4a2369fd-16eb-4a75-bc94-e7bb9031c1ac' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.196045"], ["updated_at", "2016-12-07 16:56:03.196045"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.197410"], ["updated_at", "2016-12-07 16:56:03.197410"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.198571"], ["updated_at", "2016-12-07 16:56:03.198571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.207930"], ["updated_at", "2016-12-07 16:56:03.207930"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.211295"], ["updated_at", "2016-12-07 16:56:03.211295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.219034"], ["updated_at", "2016-12-07 16:56:03.219034"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.220825"], ["updated_at", "2016-12-07 16:56:03.220825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '73365260-87a1-45f2-8dc4-59f5bf3a97b8' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "73365260-87a1-45f2-8dc4-59f5bf3a97b8"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.229746"], ["updated_at", "2016-12-07 16:56:03.229746"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '73365260-87a1-45f2-8dc4-59f5bf3a97b8', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.229746', "updated_at" = '2016-12-07 16:56:03.229746', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.235025', "updated_at" = '2016-12-07 16:56:03.235420', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '73365260-87a1-45f2-8dc4-59f5bf3a97b8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.247219"], ["updated_at", "2016-12-07 16:56:03.247219"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.249173"], ["updated_at", "2016-12-07 16:56:03.249173"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.250397"], ["updated_at", "2016-12-07 16:56:03.250397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.258563"], ["updated_at", "2016-12-07 16:56:03.258563"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.260720"], ["updated_at", "2016-12-07 16:56:03.260720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.267591"], ["updated_at", "2016-12-07 16:56:03.267591"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.269380"], ["updated_at", "2016-12-07 16:56:03.269380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b50b7361-60cb-4897-83c9-d07f4d30e001' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b50b7361-60cb-4897-83c9-d07f4d30e001"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.278221"], ["updated_at", "2016-12-07 16:56:03.278221"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b50b7361-60cb-4897-83c9-d07f4d30e001', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.278221', "updated_at" = '2016-12-07 16:56:03.278221', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.282430', "updated_at" = '2016-12-07 16:56:03.282770', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b50b7361-60cb-4897-83c9-d07f4d30e001' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.295514"], ["updated_at", "2016-12-07 16:56:03.295514"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.296901"], ["updated_at", "2016-12-07 16:56:03.296901"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.298021"], ["updated_at", "2016-12-07 16:56:03.298021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.305618"], ["updated_at", "2016-12-07 16:56:03.305618"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.308061"], ["updated_at", "2016-12-07 16:56:03.308061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:03.319344"], ["updated_at", "2016-12-07 16:56:03.319344"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:03.322479"], ["updated_at", "2016-12-07 16:56:03.322479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'bda8cb59-dad7-4fb2-b0f5-e3db5cc4a80e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.8ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "bda8cb59-dad7-4fb2-b0f5-e3db5cc4a80e"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.331840"], ["updated_at", "2016-12-07 16:56:03.331840"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'bda8cb59-dad7-4fb2-b0f5-e3db5cc4a80e', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.331840', "updated_at" = '2016-12-07 16:56:03.331840', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.337036', "updated_at" = '2016-12-07 16:56:03.337315', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'bda8cb59-dad7-4fb2-b0f5-e3db5cc4a80e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:03.349208"], ["updated_at", "2016-12-07 16:56:03.349208"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.350939"], ["updated_at", "2016-12-07 16:56:03.350939"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:03.352204"], ["updated_at", "2016-12-07 16:56:03.352204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:03.361075"], ["updated_at", "2016-12-07 16:56:03.361075"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:03.363089"], ["updated_at", "2016-12-07 16:56:03.363089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1a1ce63e-b36c-48a1-ad11-7a9093d366d3' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1a1ce63e-b36c-48a1-ad11-7a9093d366d3"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:03.369968"], ["updated_at", "2016-12-07 16:56:03.369968"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1a1ce63e-b36c-48a1-ad11-7a9093d366d3', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:03.369968', "updated_at" = '2016-12-07 16:56:03.369968', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:03.373515', "updated_at" = '2016-12-07 16:56:03.373716', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1a1ce63e-b36c-48a1-ad11-7a9093d366d3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:38.294737"], ["updated_at", "2016-12-07 16:56:38.294737"]] SQL (0.8ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:38.308065"], ["updated_at", "2016-12-07 16:56:38.308065"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:38.310853"], ["updated_at", "2016-12-07 16:56:38.310853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:38.427723"], ["updated_at", "2016-12-07 16:56:38.427723"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:38.435353"], ["updated_at", "2016-12-07 16:56:38.435353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:38.470275"], ["updated_at", "2016-12-07 16:56:38.470275"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:38.476809"], ["updated_at", "2016-12-07 16:56:38.476809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '374b399a-b608-41e2-9665-b94a667dc93f' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "374b399a-b608-41e2-9665-b94a667dc93f"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:56:38.478452"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:56:38.519687"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '374b399a-b608-41e2-9665-b94a667dc93f', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:56:38.478452', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:56:38.519687', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:38.524288', "updated_at" = '2016-12-07 16:56:38.524582', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '374b399a-b608-41e2-9665-b94a667dc93f' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '677f0da4-7654-4aa4-97df-d49f5f3f376e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "677f0da4-7654-4aa4-97df-d49f5f3f376e"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:56:38.542407"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:56:38.548086"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '677f0da4-7654-4aa4-97df-d49f5f3f376e', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:56:38.542407', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:56:38.548086', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:38.551606', "updated_at" = '2016-12-07 16:56:38.551862', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '677f0da4-7654-4aa4-97df-d49f5f3f376e' AND "ems_registrations"."id" != 2) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'cd55c944-dc10-4829-99b2-9cc55bc22f4c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "cd55c944-dc10-4829-99b2-9cc55bc22f4c"], ["amount_paid_cents", 30000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:38.561750"], ["updated_at", "2016-12-07 16:56:38.561750"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'cd55c944-dc10-4829-99b2-9cc55bc22f4c', "amount_paid_cents" = 30000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:38.561750', "updated_at" = '2016-12-07 16:56:38.561750', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:38.565220', "updated_at" = '2016-12-07 16:56:38.565475', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'cd55c944-dc10-4829-99b2-9cc55bc22f4c' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:38.573640"], ["updated_at", "2016-12-07 16:56:38.573640"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:38.575041"], ["updated_at", "2016-12-07 16:56:38.575041"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:38.576152"], ["updated_at", "2016-12-07 16:56:38.576152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:38.581786"], ["updated_at", "2016-12-07 16:56:38.581786"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:38.584149"], ["updated_at", "2016-12-07 16:56:38.584149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:38.590750"], ["updated_at", "2016-12-07 16:56:38.590750"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:38.592741"], ["updated_at", "2016-12-07 16:56:38.592741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2b3b9e3b-0859-4754-931d-d691c511cf35' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2b3b9e3b-0859-4754-931d-d691c511cf35"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:38.600079"], ["updated_at", "2016-12-07 16:56:38.600079"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2b3b9e3b-0859-4754-931d-d691c511cf35', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:38.600079', "updated_at" = '2016-12-07 16:56:38.600079', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:38.605748', "updated_at" = '2016-12-07 16:56:38.606454', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2b3b9e3b-0859-4754-931d-d691c511cf35' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1516.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.139904"], ["updated_at", "2016-12-07 16:56:40.139904"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.142117"], ["updated_at", "2016-12-07 16:56:40.142117"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.143726"], ["updated_at", "2016-12-07 16:56:40.143726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.151344"], ["updated_at", "2016-12-07 16:56:40.151344"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.153873"], ["updated_at", "2016-12-07 16:56:40.153873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.162999"], ["updated_at", "2016-12-07 16:56:40.162999"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.165030"], ["updated_at", "2016-12-07 16:56:40.165030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e26741c3-fdd6-4a51-88c0-378e947de266' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e26741c3-fdd6-4a51-88c0-378e947de266"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.173331"], ["updated_at", "2016-12-07 16:56:40.173331"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e26741c3-fdd6-4a51-88c0-378e947de266', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.173331', "updated_at" = '2016-12-07 16:56:40.173331', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.178143', "updated_at" = '2016-12-07 16:56:40.178493', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e26741c3-fdd6-4a51-88c0-378e947de266' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.188874"], ["updated_at", "2016-12-07 16:56:40.188874"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.190329"], ["updated_at", "2016-12-07 16:56:40.190329"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.191480"], ["updated_at", "2016-12-07 16:56:40.191480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.197817"], ["updated_at", "2016-12-07 16:56:40.197817"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.200176"], ["updated_at", "2016-12-07 16:56:40.200176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.208003"], ["updated_at", "2016-12-07 16:56:40.208003"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.210724"], ["updated_at", "2016-12-07 16:56:40.210724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'd5289ef0-0090-4f75-b816-e549a48989c9' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "d5289ef0-0090-4f75-b816-e549a48989c9"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.219239"], ["updated_at", "2016-12-07 16:56:40.219239"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'd5289ef0-0090-4f75-b816-e549a48989c9', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.219239', "updated_at" = '2016-12-07 16:56:40.219239', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.223059', "updated_at" = '2016-12-07 16:56:40.223339', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'd5289ef0-0090-4f75-b816-e549a48989c9' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.250777"], ["updated_at", "2016-12-07 16:56:40.250777"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.252160"], ["updated_at", "2016-12-07 16:56:40.252160"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.253304"], ["updated_at", "2016-12-07 16:56:40.253304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.261240"], ["updated_at", "2016-12-07 16:56:40.261240"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.263671"], ["updated_at", "2016-12-07 16:56:40.263671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.270425"], ["updated_at", "2016-12-07 16:56:40.270425"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.272264"], ["updated_at", "2016-12-07 16:56:40.272264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '48efff71-44f7-4aa9-ae41-607bd211f5e3' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "48efff71-44f7-4aa9-ae41-607bd211f5e3"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.281929"], ["updated_at", "2016-12-07 16:56:40.281929"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '48efff71-44f7-4aa9-ae41-607bd211f5e3', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.281929', "updated_at" = '2016-12-07 16:56:40.281929', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.286794', "updated_at" = '2016-12-07 16:56:40.287059', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '48efff71-44f7-4aa9-ae41-607bd211f5e3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.296900"], ["updated_at", "2016-12-07 16:56:40.296900"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.298287"], ["updated_at", "2016-12-07 16:56:40.298287"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.299313"], ["updated_at", "2016-12-07 16:56:40.299313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.306540"], ["updated_at", "2016-12-07 16:56:40.306540"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.310853"], ["updated_at", "2016-12-07 16:56:40.310853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.321557"], ["updated_at", "2016-12-07 16:56:40.321557"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.323478"], ["updated_at", "2016-12-07 16:56:40.323478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5188b03c-1ca9-474f-85f2-ad405ac9f483' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5188b03c-1ca9-474f-85f2-ad405ac9f483"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.332013"], ["updated_at", "2016-12-07 16:56:40.332013"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5188b03c-1ca9-474f-85f2-ad405ac9f483', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.332013', "updated_at" = '2016-12-07 16:56:40.332013', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.335662', "updated_at" = '2016-12-07 16:56:40.335923', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5188b03c-1ca9-474f-85f2-ad405ac9f483' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.347057"], ["updated_at", "2016-12-07 16:56:40.347057"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.349569"], ["updated_at", "2016-12-07 16:56:40.349569"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.351313"], ["updated_at", "2016-12-07 16:56:40.351313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.360621"], ["updated_at", "2016-12-07 16:56:40.360621"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.364956"], ["updated_at", "2016-12-07 16:56:40.364956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.372621"], ["updated_at", "2016-12-07 16:56:40.372621"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.374471"], ["updated_at", "2016-12-07 16:56:40.374471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5199e8db-f116-4d1d-a2c2-dfeac624d247' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5199e8db-f116-4d1d-a2c2-dfeac624d247"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.383752"], ["updated_at", "2016-12-07 16:56:40.383752"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5199e8db-f116-4d1d-a2c2-dfeac624d247', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.383752', "updated_at" = '2016-12-07 16:56:40.383752', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.387335', "updated_at" = '2016-12-07 16:56:40.387584', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5199e8db-f116-4d1d-a2c2-dfeac624d247' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.397213"], ["updated_at", "2016-12-07 16:56:40.397213"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.398727"], ["updated_at", "2016-12-07 16:56:40.398727"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.399790"], ["updated_at", "2016-12-07 16:56:40.399790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.406391"], ["updated_at", "2016-12-07 16:56:40.406391"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.408800"], ["updated_at", "2016-12-07 16:56:40.408800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.419408"], ["updated_at", "2016-12-07 16:56:40.419408"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.421262"], ["updated_at", "2016-12-07 16:56:40.421262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'aa99e6bd-61ad-41fd-b1bd-1209091c93ef' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "aa99e6bd-61ad-41fd-b1bd-1209091c93ef"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.430266"], ["updated_at", "2016-12-07 16:56:40.430266"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'aa99e6bd-61ad-41fd-b1bd-1209091c93ef', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.430266', "updated_at" = '2016-12-07 16:56:40.430266', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.434991', "updated_at" = '2016-12-07 16:56:40.435243', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'aa99e6bd-61ad-41fd-b1bd-1209091c93ef' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.447110"], ["updated_at", "2016-12-07 16:56:40.447110"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.449547"], ["updated_at", "2016-12-07 16:56:40.449547"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.451269"], ["updated_at", "2016-12-07 16:56:40.451269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.459984"], ["updated_at", "2016-12-07 16:56:40.459984"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.462671"], ["updated_at", "2016-12-07 16:56:40.462671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.470409"], ["updated_at", "2016-12-07 16:56:40.470409"]] SQL (0.8ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.472349"], ["updated_at", "2016-12-07 16:56:40.472349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e3515a18-8549-45f1-b71a-c8d520c9e98d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e3515a18-8549-45f1-b71a-c8d520c9e98d"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.483009"], ["updated_at", "2016-12-07 16:56:40.483009"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e3515a18-8549-45f1-b71a-c8d520c9e98d', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.483009', "updated_at" = '2016-12-07 16:56:40.483009', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.486883', "updated_at" = '2016-12-07 16:56:40.487121', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e3515a18-8549-45f1-b71a-c8d520c9e98d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.496838"], ["updated_at", "2016-12-07 16:56:40.496838"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.498319"], ["updated_at", "2016-12-07 16:56:40.498319"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.499399"], ["updated_at", "2016-12-07 16:56:40.499399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.506060"], ["updated_at", "2016-12-07 16:56:40.506060"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.508392"], ["updated_at", "2016-12-07 16:56:40.508392"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:56:40.520331"], ["updated_at", "2016-12-07 16:56:40.520331"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:56:40.522170"], ["updated_at", "2016-12-07 16:56:40.522170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f15bfa45-0916-4526-97d5-df6bb733c938' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f15bfa45-0916-4526-97d5-df6bb733c938"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.531340"], ["updated_at", "2016-12-07 16:56:40.531340"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f15bfa45-0916-4526-97d5-df6bb733c938', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.531340', "updated_at" = '2016-12-07 16:56:40.531340', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.535185', "updated_at" = '2016-12-07 16:56:40.535446', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f15bfa45-0916-4526-97d5-df6bb733c938' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:56:40.547775"], ["updated_at", "2016-12-07 16:56:40.547775"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.550324"], ["updated_at", "2016-12-07 16:56:40.550324"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:56:40.552153"], ["updated_at", "2016-12-07 16:56:40.552153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:56:40.562876"], ["updated_at", "2016-12-07 16:56:40.562876"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:56:40.565141"], ["updated_at", "2016-12-07 16:56:40.565141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '834b47bd-befa-4c12-8908-d76331626daa' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "834b47bd-befa-4c12-8908-d76331626daa"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:56:40.571929"], ["updated_at", "2016-12-07 16:56:40.571929"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '834b47bd-befa-4c12-8908-d76331626daa', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:56:40.571929', "updated_at" = '2016-12-07 16:56:40.571929', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:56:40.575329', "updated_at" = '2016-12-07 16:56:40.575592', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '834b47bd-befa-4c12-8908-d76331626daa' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:04.514944"], ["updated_at", "2016-12-07 16:57:04.514944"]] SQL (5.5ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.530019"], ["updated_at", "2016-12-07 16:57:04.530019"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.537271"], ["updated_at", "2016-12-07 16:57:04.537271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.6ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (2.5ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:04.659513"], ["updated_at", "2016-12-07 16:57:04.659513"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:04.675042"], ["updated_at", "2016-12-07 16:57:04.675042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.5ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.7ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:04.714429"], ["updated_at", "2016-12-07 16:57:04.714429"]] SQL (4.7ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:04.722506"], ["updated_at", "2016-12-07 16:57:04.722506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.4ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '24d32925-744f-4c61-b03b-99bc5be4b0b5' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (9.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "24d32925-744f-4c61-b03b-99bc5be4b0b5"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:57:04.729549"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:57:04.770586"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '24d32925-744f-4c61-b03b-99bc5be4b0b5', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:57:04.729549', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:57:04.770586', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.784813', "updated_at" = '2016-12-07 16:57:04.785109', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (1.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '24d32925-744f-4c61-b03b-99bc5be4b0b5' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6e36f711-dc2c-4fb0-8772-09e26f771cc4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6e36f711-dc2c-4fb0-8772-09e26f771cc4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:57:04.807179"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:57:04.813681"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6e36f711-dc2c-4fb0-8772-09e26f771cc4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:57:04.807179', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:57:04.813681', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.817497', "updated_at" = '2016-12-07 16:57:04.817798', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6e36f711-dc2c-4fb0-8772-09e26f771cc4' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '32671a4b-aafc-4bd0-b2b5-75cab2dd1eb4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "32671a4b-aafc-4bd0-b2b5-75cab2dd1eb4"], ["amount_paid_cents", 10000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:04.827886"], ["updated_at", "2016-12-07 16:57:04.827886"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '32671a4b-aafc-4bd0-b2b5-75cab2dd1eb4', "amount_paid_cents" = 10000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:04.827886', "updated_at" = '2016-12-07 16:57:04.827886', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.832149', "updated_at" = '2016-12-07 16:57:04.832882', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '32671a4b-aafc-4bd0-b2b5-75cab2dd1eb4' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:04.842987"], ["updated_at", "2016-12-07 16:57:04.842987"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.844458"], ["updated_at", "2016-12-07 16:57:04.844458"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.845535"], ["updated_at", "2016-12-07 16:57:04.845535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:04.851667"], ["updated_at", "2016-12-07 16:57:04.851667"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:04.853947"], ["updated_at", "2016-12-07 16:57:04.853947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:04.860499"], ["updated_at", "2016-12-07 16:57:04.860499"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:04.862142"], ["updated_at", "2016-12-07 16:57:04.862142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c895bf05-d693-4683-a395-3259816793b6' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c895bf05-d693-4683-a395-3259816793b6"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:04.869799"], ["updated_at", "2016-12-07 16:57:04.869799"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c895bf05-d693-4683-a395-3259816793b6', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:04.869799', "updated_at" = '2016-12-07 16:57:04.869799', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.873781', "updated_at" = '2016-12-07 16:57:04.874129', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c895bf05-d693-4683-a395-3259816793b6' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:04.884080"], ["updated_at", "2016-12-07 16:57:04.884080"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.885622"], ["updated_at", "2016-12-07 16:57:04.885622"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.886794"], ["updated_at", "2016-12-07 16:57:04.886794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:04.894789"], ["updated_at", "2016-12-07 16:57:04.894789"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:04.896874"], ["updated_at", "2016-12-07 16:57:04.896874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:04.908678"], ["updated_at", "2016-12-07 16:57:04.908678"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:04.911571"], ["updated_at", "2016-12-07 16:57:04.911571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3e97ece0-4f9b-4182-a031-3e5e4b97c797' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3e97ece0-4f9b-4182-a031-3e5e4b97c797"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:04.919682"], ["updated_at", "2016-12-07 16:57:04.919682"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3e97ece0-4f9b-4182-a031-3e5e4b97c797', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:04.919682', "updated_at" = '2016-12-07 16:57:04.919682', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.923244', "updated_at" = '2016-12-07 16:57:04.923505', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3e97ece0-4f9b-4182-a031-3e5e4b97c797' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:04.932867"], ["updated_at", "2016-12-07 16:57:04.932867"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.934480"], ["updated_at", "2016-12-07 16:57:04.934480"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.935589"], ["updated_at", "2016-12-07 16:57:04.935589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:04.943460"], ["updated_at", "2016-12-07 16:57:04.943460"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:04.945583"], ["updated_at", "2016-12-07 16:57:04.945583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:04.952722"], ["updated_at", "2016-12-07 16:57:04.952722"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:04.954871"], ["updated_at", "2016-12-07 16:57:04.954871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '04037e86-363c-4d35-a613-3489d4cff857' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "04037e86-363c-4d35-a613-3489d4cff857"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:04.963141"], ["updated_at", "2016-12-07 16:57:04.963141"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '04037e86-363c-4d35-a613-3489d4cff857', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:04.963141', "updated_at" = '2016-12-07 16:57:04.963141', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:04.966844', "updated_at" = '2016-12-07 16:57:04.967097', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '04037e86-363c-4d35-a613-3489d4cff857' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:04.996354"], ["updated_at", "2016-12-07 16:57:04.996354"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.998169"], ["updated_at", "2016-12-07 16:57:04.998169"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:04.999220"], ["updated_at", "2016-12-07 16:57:04.999220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.006544"], ["updated_at", "2016-12-07 16:57:05.006544"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.009197"], ["updated_at", "2016-12-07 16:57:05.009197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.016013"], ["updated_at", "2016-12-07 16:57:05.016013"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.017748"], ["updated_at", "2016-12-07 16:57:05.017748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '482c1602-dfb0-4726-89f2-46594131d598' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "482c1602-dfb0-4726-89f2-46594131d598"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.025443"], ["updated_at", "2016-12-07 16:57:05.025443"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '482c1602-dfb0-4726-89f2-46594131d598', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.025443', "updated_at" = '2016-12-07 16:57:05.025443', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.028958', "updated_at" = '2016-12-07 16:57:05.029240', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.2ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '482c1602-dfb0-4726-89f2-46594131d598' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.046078"], ["updated_at", "2016-12-07 16:57:05.046078"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.047524"], ["updated_at", "2016-12-07 16:57:05.047524"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.048554"], ["updated_at", "2016-12-07 16:57:05.048554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.055121"], ["updated_at", "2016-12-07 16:57:05.055121"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.058229"], ["updated_at", "2016-12-07 16:57:05.058229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.065492"], ["updated_at", "2016-12-07 16:57:05.065492"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.067312"], ["updated_at", "2016-12-07 16:57:05.067312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7cbeb2a0-0c2a-4e64-a0fc-fc512827f262' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7cbeb2a0-0c2a-4e64-a0fc-fc512827f262"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.075124"], ["updated_at", "2016-12-07 16:57:05.075124"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7cbeb2a0-0c2a-4e64-a0fc-fc512827f262', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.075124', "updated_at" = '2016-12-07 16:57:05.075124', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.078595', "updated_at" = '2016-12-07 16:57:05.078873', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7cbeb2a0-0c2a-4e64-a0fc-fc512827f262' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.094675"], ["updated_at", "2016-12-07 16:57:05.094675"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.096189"], ["updated_at", "2016-12-07 16:57:05.096189"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.097317"], ["updated_at", "2016-12-07 16:57:05.097317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.103790"], ["updated_at", "2016-12-07 16:57:05.103790"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.106300"], ["updated_at", "2016-12-07 16:57:05.106300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.117421"], ["updated_at", "2016-12-07 16:57:05.117421"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.119289"], ["updated_at", "2016-12-07 16:57:05.119289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5157c648-9abf-4e2b-a843-7f5a78cbba7e' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5157c648-9abf-4e2b-a843-7f5a78cbba7e"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.127455"], ["updated_at", "2016-12-07 16:57:05.127455"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5157c648-9abf-4e2b-a843-7f5a78cbba7e', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.127455', "updated_at" = '2016-12-07 16:57:05.127455', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.131583', "updated_at" = '2016-12-07 16:57:05.131940', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5157c648-9abf-4e2b-a843-7f5a78cbba7e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.146453"], ["updated_at", "2016-12-07 16:57:05.146453"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.147865"], ["updated_at", "2016-12-07 16:57:05.147865"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.148943"], ["updated_at", "2016-12-07 16:57:05.148943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.155228"], ["updated_at", "2016-12-07 16:57:05.155228"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.158679"], ["updated_at", "2016-12-07 16:57:05.158679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.166127"], ["updated_at", "2016-12-07 16:57:05.166127"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.167901"], ["updated_at", "2016-12-07 16:57:05.167901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e56fb5b5-af86-41c8-89e7-22ef9ecd9214' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e56fb5b5-af86-41c8-89e7-22ef9ecd9214"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.175699"], ["updated_at", "2016-12-07 16:57:05.175699"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e56fb5b5-af86-41c8-89e7-22ef9ecd9214', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.175699', "updated_at" = '2016-12-07 16:57:05.175699', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.179939', "updated_at" = '2016-12-07 16:57:05.180237', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e56fb5b5-af86-41c8-89e7-22ef9ecd9214' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.191889"], ["updated_at", "2016-12-07 16:57:05.191889"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.193302"], ["updated_at", "2016-12-07 16:57:05.193302"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.194481"], ["updated_at", "2016-12-07 16:57:05.194481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.202120"], ["updated_at", "2016-12-07 16:57:05.202120"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.204739"], ["updated_at", "2016-12-07 16:57:05.204739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.214812"], ["updated_at", "2016-12-07 16:57:05.214812"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.216781"], ["updated_at", "2016-12-07 16:57:05.216781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '29027775-ecd5-4d5c-8159-f9c29a819891' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "29027775-ecd5-4d5c-8159-f9c29a819891"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.225701"], ["updated_at", "2016-12-07 16:57:05.225701"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '29027775-ecd5-4d5c-8159-f9c29a819891', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.225701', "updated_at" = '2016-12-07 16:57:05.225701', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.229363', "updated_at" = '2016-12-07 16:57:05.229597', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '29027775-ecd5-4d5c-8159-f9c29a819891' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.242684"], ["updated_at", "2016-12-07 16:57:05.242684"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.244865"], ["updated_at", "2016-12-07 16:57:05.244865"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.246473"], ["updated_at", "2016-12-07 16:57:05.246473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.254551"], ["updated_at", "2016-12-07 16:57:05.254551"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.257086"], ["updated_at", "2016-12-07 16:57:05.257086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:05.265044"], ["updated_at", "2016-12-07 16:57:05.265044"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:05.266916"], ["updated_at", "2016-12-07 16:57:05.266916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '42d54a64-086c-486f-92a3-c9d906b8d80b' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "42d54a64-086c-486f-92a3-c9d906b8d80b"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.274978"], ["updated_at", "2016-12-07 16:57:05.274978"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '42d54a64-086c-486f-92a3-c9d906b8d80b', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.274978', "updated_at" = '2016-12-07 16:57:05.274978', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.278698', "updated_at" = '2016-12-07 16:57:05.278981', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '42d54a64-086c-486f-92a3-c9d906b8d80b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:05.292203"], ["updated_at", "2016-12-07 16:57:05.292203"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.294062"], ["updated_at", "2016-12-07 16:57:05.294062"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:05.295131"], ["updated_at", "2016-12-07 16:57:05.295131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:05.303778"], ["updated_at", "2016-12-07 16:57:05.303778"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:05.306512"], ["updated_at", "2016-12-07 16:57:05.306512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '2d31eed9-acbd-4baf-8a9f-166723b6f9fb' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "2d31eed9-acbd-4baf-8a9f-166723b6f9fb"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:05.315571"], ["updated_at", "2016-12-07 16:57:05.315571"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '2d31eed9-acbd-4baf-8a9f-166723b6f9fb', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:05.315571', "updated_at" = '2016-12-07 16:57:05.315571', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:05.320066', "updated_at" = '2016-12-07 16:57:05.320354', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '2d31eed9-acbd-4baf-8a9f-166723b6f9fb' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.154439"], ["updated_at", "2016-12-07 16:57:32.154439"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.169032"], ["updated_at", "2016-12-07 16:57:32.169032"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.170604"], ["updated_at", "2016-12-07 16:57:32.170604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.280218"], ["updated_at", "2016-12-07 16:57:32.280218"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.288436"], ["updated_at", "2016-12-07 16:57:32.288436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.323469"], ["updated_at", "2016-12-07 16:57:32.323469"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.329878"], ["updated_at", "2016-12-07 16:57:32.329878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1aeb03dd-c3df-415e-8771-c8c867abe837' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1aeb03dd-c3df-415e-8771-c8c867abe837"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:57:32.331598"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:57:32.367777"], ["lock_version", 0]] SQL (0.3ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1aeb03dd-c3df-415e-8771-c8c867abe837', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:57:32.331598', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:57:32.367777', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.375324', "updated_at" = '2016-12-07 16:57:32.375929', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1aeb03dd-c3df-415e-8771-c8c867abe837' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '827dfe6f-7f2c-4fd7-ad60-ab4a2b38854b' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "827dfe6f-7f2c-4fd7-ad60-ab4a2b38854b"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 16:57:32.396112"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:57:32.401536"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '827dfe6f-7f2c-4fd7-ad60-ab4a2b38854b', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 16:57:32.396112', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:57:32.401536', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.404895', "updated_at" = '2016-12-07 16:57:32.405129', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '827dfe6f-7f2c-4fd7-ad60-ab4a2b38854b' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '3fef7468-7099-4f7a-902c-a1f14a95481b' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "3fef7468-7099-4f7a-902c-a1f14a95481b"], ["amount_paid_cents", 10000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 16:57:32.409778"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 16:57:32.415172"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '3fef7468-7099-4f7a-902c-a1f14a95481b', "amount_paid_cents" = 10000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 16:57:32.409778', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 16:57:32.415172', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.418641', "updated_at" = '2016-12-07 16:57:32.418906', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '3fef7468-7099-4f7a-902c-a1f14a95481b' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.455578"], ["updated_at", "2016-12-07 16:57:32.455578"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.457074"], ["updated_at", "2016-12-07 16:57:32.457074"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.458107"], ["updated_at", "2016-12-07 16:57:32.458107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.464507"], ["updated_at", "2016-12-07 16:57:32.464507"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.466699"], ["updated_at", "2016-12-07 16:57:32.466699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.473893"], ["updated_at", "2016-12-07 16:57:32.473893"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.476532"], ["updated_at", "2016-12-07 16:57:32.476532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '65ed513c-1efe-4f09-9d43-edc3a6233aac' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "65ed513c-1efe-4f09-9d43-edc3a6233aac"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.487709"], ["updated_at", "2016-12-07 16:57:32.487709"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '65ed513c-1efe-4f09-9d43-edc3a6233aac', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.487709', "updated_at" = '2016-12-07 16:57:32.487709', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.492353', "updated_at" = '2016-12-07 16:57:32.492714', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '65ed513c-1efe-4f09-9d43-edc3a6233aac' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.504761"], ["updated_at", "2016-12-07 16:57:32.504761"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.507209"], ["updated_at", "2016-12-07 16:57:32.507209"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.508899"], ["updated_at", "2016-12-07 16:57:32.508899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.514951"], ["updated_at", "2016-12-07 16:57:32.514951"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.516849"], ["updated_at", "2016-12-07 16:57:32.516849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.523261"], ["updated_at", "2016-12-07 16:57:32.523261"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.525426"], ["updated_at", "2016-12-07 16:57:32.525426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '11b53569-4847-43a7-9908-fea0ec320ce1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "11b53569-4847-43a7-9908-fea0ec320ce1"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.538520"], ["updated_at", "2016-12-07 16:57:32.538520"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '11b53569-4847-43a7-9908-fea0ec320ce1', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.538520', "updated_at" = '2016-12-07 16:57:32.538520', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.543205', "updated_at" = '2016-12-07 16:57:32.543501', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '11b53569-4847-43a7-9908-fea0ec320ce1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.556301"], ["updated_at", "2016-12-07 16:57:32.556301"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.558453"], ["updated_at", "2016-12-07 16:57:32.558453"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.560199"], ["updated_at", "2016-12-07 16:57:32.560199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.588280"], ["updated_at", "2016-12-07 16:57:32.588280"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.593011"], ["updated_at", "2016-12-07 16:57:32.593011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.603388"], ["updated_at", "2016-12-07 16:57:32.603388"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.605133"], ["updated_at", "2016-12-07 16:57:32.605133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '27634e83-e269-4eea-8a86-db8559e96f0b' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "27634e83-e269-4eea-8a86-db8559e96f0b"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.612452"], ["updated_at", "2016-12-07 16:57:32.612452"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '27634e83-e269-4eea-8a86-db8559e96f0b', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.612452', "updated_at" = '2016-12-07 16:57:32.612452', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.615952', "updated_at" = '2016-12-07 16:57:32.616181', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '27634e83-e269-4eea-8a86-db8559e96f0b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.624790"], ["updated_at", "2016-12-07 16:57:32.624790"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.626162"], ["updated_at", "2016-12-07 16:57:32.626162"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.627208"], ["updated_at", "2016-12-07 16:57:32.627208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.633942"], ["updated_at", "2016-12-07 16:57:32.633942"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.635989"], ["updated_at", "2016-12-07 16:57:32.635989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.642279"], ["updated_at", "2016-12-07 16:57:32.642279"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.643875"], ["updated_at", "2016-12-07 16:57:32.643875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '63cd988c-0000-41a4-93de-ecd32304072b' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "63cd988c-0000-41a4-93de-ecd32304072b"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.651523"], ["updated_at", "2016-12-07 16:57:32.651523"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '63cd988c-0000-41a4-93de-ecd32304072b', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.651523', "updated_at" = '2016-12-07 16:57:32.651523', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.655127', "updated_at" = '2016-12-07 16:57:32.655375', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '63cd988c-0000-41a4-93de-ecd32304072b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.666646"], ["updated_at", "2016-12-07 16:57:32.666646"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.669205"], ["updated_at", "2016-12-07 16:57:32.669205"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.670880"], ["updated_at", "2016-12-07 16:57:32.670880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.678303"], ["updated_at", "2016-12-07 16:57:32.678303"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.681682"], ["updated_at", "2016-12-07 16:57:32.681682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.689048"], ["updated_at", "2016-12-07 16:57:32.689048"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.692616"], ["updated_at", "2016-12-07 16:57:32.692616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e0d00e98-f494-4200-ae64-52b9cb8ee9be' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e0d00e98-f494-4200-ae64-52b9cb8ee9be"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.705139"], ["updated_at", "2016-12-07 16:57:32.705139"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e0d00e98-f494-4200-ae64-52b9cb8ee9be', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.705139', "updated_at" = '2016-12-07 16:57:32.705139', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.708580', "updated_at" = '2016-12-07 16:57:32.708825', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e0d00e98-f494-4200-ae64-52b9cb8ee9be' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.720662"], ["updated_at", "2016-12-07 16:57:32.720662"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.723098"], ["updated_at", "2016-12-07 16:57:32.723098"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.724970"], ["updated_at", "2016-12-07 16:57:32.724970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.733982"], ["updated_at", "2016-12-07 16:57:32.733982"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.736096"], ["updated_at", "2016-12-07 16:57:32.736096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.744116"], ["updated_at", "2016-12-07 16:57:32.744116"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.746399"], ["updated_at", "2016-12-07 16:57:32.746399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a1f2acea-2153-4979-849e-68c472a7a922' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a1f2acea-2153-4979-849e-68c472a7a922"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.754090"], ["updated_at", "2016-12-07 16:57:32.754090"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a1f2acea-2153-4979-849e-68c472a7a922', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.754090', "updated_at" = '2016-12-07 16:57:32.754090', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.757653', "updated_at" = '2016-12-07 16:57:32.757916', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a1f2acea-2153-4979-849e-68c472a7a922' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.767515"], ["updated_at", "2016-12-07 16:57:32.767515"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.769025"], ["updated_at", "2016-12-07 16:57:32.769025"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.770737"], ["updated_at", "2016-12-07 16:57:32.770737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.777554"], ["updated_at", "2016-12-07 16:57:32.777554"]] SQL (0.3ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.781462"], ["updated_at", "2016-12-07 16:57:32.781462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.793599"], ["updated_at", "2016-12-07 16:57:32.793599"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.796051"], ["updated_at", "2016-12-07 16:57:32.796051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5cd34c0e-bcca-44c4-8ff6-e2b6a5f80327' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5cd34c0e-bcca-44c4-8ff6-e2b6a5f80327"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.804253"], ["updated_at", "2016-12-07 16:57:32.804253"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5cd34c0e-bcca-44c4-8ff6-e2b6a5f80327', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.804253', "updated_at" = '2016-12-07 16:57:32.804253', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.807939', "updated_at" = '2016-12-07 16:57:32.808228', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5cd34c0e-bcca-44c4-8ff6-e2b6a5f80327' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.823535"], ["updated_at", "2016-12-07 16:57:32.823535"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.826057"], ["updated_at", "2016-12-07 16:57:32.826057"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.827845"], ["updated_at", "2016-12-07 16:57:32.827845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.835989"], ["updated_at", "2016-12-07 16:57:32.835989"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.838040"], ["updated_at", "2016-12-07 16:57:32.838040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.845532"], ["updated_at", "2016-12-07 16:57:32.845532"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.847840"], ["updated_at", "2016-12-07 16:57:32.847840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c0951b98-5d68-43e3-b0a1-916334be1826' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c0951b98-5d68-43e3-b0a1-916334be1826"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.855788"], ["updated_at", "2016-12-07 16:57:32.855788"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c0951b98-5d68-43e3-b0a1-916334be1826', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.855788', "updated_at" = '2016-12-07 16:57:32.855788', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.859445', "updated_at" = '2016-12-07 16:57:32.859678', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c0951b98-5d68-43e3-b0a1-916334be1826' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.869703"], ["updated_at", "2016-12-07 16:57:32.869703"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.871184"], ["updated_at", "2016-12-07 16:57:32.871184"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.872335"], ["updated_at", "2016-12-07 16:57:32.872335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.880073"], ["updated_at", "2016-12-07 16:57:32.880073"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.882826"], ["updated_at", "2016-12-07 16:57:32.882826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 16:57:32.890624"], ["updated_at", "2016-12-07 16:57:32.890624"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 16:57:32.893785"], ["updated_at", "2016-12-07 16:57:32.893785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5236fdcc-84bc-4c86-b8ee-28a836213563' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5236fdcc-84bc-4c86-b8ee-28a836213563"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.902094"], ["updated_at", "2016-12-07 16:57:32.902094"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5236fdcc-84bc-4c86-b8ee-28a836213563', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.902094', "updated_at" = '2016-12-07 16:57:32.902094', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.905898', "updated_at" = '2016-12-07 16:57:32.906143', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5236fdcc-84bc-4c86-b8ee-28a836213563' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 16:57:32.918179"], ["updated_at", "2016-12-07 16:57:32.918179"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.920626"], ["updated_at", "2016-12-07 16:57:32.920626"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 16:57:32.922358"], ["updated_at", "2016-12-07 16:57:32.922358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 16:57:32.931368"], ["updated_at", "2016-12-07 16:57:32.931368"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 16:57:32.934197"], ["updated_at", "2016-12-07 16:57:32.934197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1389aea8-dabb-44eb-936b-3dd4141737e7' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1389aea8-dabb-44eb-936b-3dd4141737e7"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 16:57:32.941303"], ["updated_at", "2016-12-07 16:57:32.941303"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1389aea8-dabb-44eb-936b-3dd4141737e7', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 16:57:32.941303', "updated_at" = '2016-12-07 16:57:32.941303', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 16:57:32.945203', "updated_at" = '2016-12-07 16:57:32.945517', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1389aea8-dabb-44eb-936b-3dd4141737e7' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:12.875898"], ["updated_at", "2016-12-07 17:01:12.875898"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:12.889103"], ["updated_at", "2016-12-07 17:01:12.889103"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:12.890978"], ["updated_at", "2016-12-07 17:01:12.890978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.4ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.020911"], ["updated_at", "2016-12-07 17:01:13.020911"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.029978"], ["updated_at", "2016-12-07 17:01:13.029978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.069804"], ["updated_at", "2016-12-07 17:01:13.069804"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.076364"], ["updated_at", "2016-12-07 17:01:13.076364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'c34a06a1-49cc-4bbb-85d8-1574fd12ce11' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "c34a06a1-49cc-4bbb-85d8-1574fd12ce11"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:01:13.078083"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:01:13.119080"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'c34a06a1-49cc-4bbb-85d8-1574fd12ce11', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:01:13.078083', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:01:13.119080', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.123737', "updated_at" = '2016-12-07 17:01:13.124029', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'c34a06a1-49cc-4bbb-85d8-1574fd12ce11' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0c4d0f61-e395-46a3-a5e4-92c935d8f89a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0c4d0f61-e395-46a3-a5e4-92c935d8f89a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 17:01:13.142195"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:01:13.153088"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0c4d0f61-e395-46a3-a5e4-92c935d8f89a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 17:01:13.142195', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:01:13.153088', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.157710', "updated_at" = '2016-12-07 17:01:13.158011', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0c4d0f61-e395-46a3-a5e4-92c935d8f89a' AND "ems_registrations"."id" != 2) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ec04e675-609e-4d01-ad89-11b5c064e139' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ec04e675-609e-4d01-ad89-11b5c064e139"], ["amount_paid_cents", 10000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:01:13.162782"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:01:13.168721"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ec04e675-609e-4d01-ad89-11b5c064e139', "amount_paid_cents" = 10000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:01:13.162782', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:01:13.168721', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.172227', "updated_at" = '2016-12-07 17:01:13.172493', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ec04e675-609e-4d01-ad89-11b5c064e139' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.181048"], ["updated_at", "2016-12-07 17:01:13.181048"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.182534"], ["updated_at", "2016-12-07 17:01:13.182534"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.183660"], ["updated_at", "2016-12-07 17:01:13.183660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.190510"], ["updated_at", "2016-12-07 17:01:13.190510"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.192995"], ["updated_at", "2016-12-07 17:01:13.192995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.203337"], ["updated_at", "2016-12-07 17:01:13.203337"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.205347"], ["updated_at", "2016-12-07 17:01:13.205347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '20db6227-dc58-4e45-a5d5-29a507c0b330' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "20db6227-dc58-4e45-a5d5-29a507c0b330"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:01:13.207087"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:01:13.214435"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '20db6227-dc58-4e45-a5d5-29a507c0b330', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:01:13.207087', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:01:13.214435', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.218022', "updated_at" = '2016-12-07 17:01:13.218294', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '20db6227-dc58-4e45-a5d5-29a507c0b330' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.249915"], ["updated_at", "2016-12-07 17:01:13.249915"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.252417"], ["updated_at", "2016-12-07 17:01:13.252417"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.254111"], ["updated_at", "2016-12-07 17:01:13.254111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.260642"], ["updated_at", "2016-12-07 17:01:13.260642"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.262526"], ["updated_at", "2016-12-07 17:01:13.262526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.269789"], ["updated_at", "2016-12-07 17:01:13.269789"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.271582"], ["updated_at", "2016-12-07 17:01:13.271582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5aced772-3bea-4e1c-a3c9-4230869c79aa' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5aced772-3bea-4e1c-a3c9-4230869c79aa"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.279269"], ["updated_at", "2016-12-07 17:01:13.279269"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5aced772-3bea-4e1c-a3c9-4230869c79aa', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.279269', "updated_at" = '2016-12-07 17:01:13.279269', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.282786', "updated_at" = '2016-12-07 17:01:13.283045', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5aced772-3bea-4e1c-a3c9-4230869c79aa' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.293834"], ["updated_at", "2016-12-07 17:01:13.293834"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.296527"], ["updated_at", "2016-12-07 17:01:13.296527"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.297856"], ["updated_at", "2016-12-07 17:01:13.297856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.327537"], ["updated_at", "2016-12-07 17:01:13.327537"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.329431"], ["updated_at", "2016-12-07 17:01:13.329431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.335728"], ["updated_at", "2016-12-07 17:01:13.335728"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.338608"], ["updated_at", "2016-12-07 17:01:13.338608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'faa0fad8-44c8-40ac-bf89-8c99363b344b' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "faa0fad8-44c8-40ac-bf89-8c99363b344b"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.352697"], ["updated_at", "2016-12-07 17:01:13.352697"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'faa0fad8-44c8-40ac-bf89-8c99363b344b', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.352697', "updated_at" = '2016-12-07 17:01:13.352697', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.356796', "updated_at" = '2016-12-07 17:01:13.357084', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'faa0fad8-44c8-40ac-bf89-8c99363b344b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.368306"], ["updated_at", "2016-12-07 17:01:13.368306"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.369708"], ["updated_at", "2016-12-07 17:01:13.369708"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.370726"], ["updated_at", "2016-12-07 17:01:13.370726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.376795"], ["updated_at", "2016-12-07 17:01:13.376795"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.379080"], ["updated_at", "2016-12-07 17:01:13.379080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.385660"], ["updated_at", "2016-12-07 17:01:13.385660"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.387460"], ["updated_at", "2016-12-07 17:01:13.387460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'b88bcd24-5bcf-474b-872a-4401f03f5340' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "b88bcd24-5bcf-474b-872a-4401f03f5340"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.397563"], ["updated_at", "2016-12-07 17:01:13.397563"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'b88bcd24-5bcf-474b-872a-4401f03f5340', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.397563', "updated_at" = '2016-12-07 17:01:13.397563', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.401264', "updated_at" = '2016-12-07 17:01:13.401539', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'b88bcd24-5bcf-474b-872a-4401f03f5340' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.412087"], ["updated_at", "2016-12-07 17:01:13.412087"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.413795"], ["updated_at", "2016-12-07 17:01:13.413795"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.414900"], ["updated_at", "2016-12-07 17:01:13.414900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.423277"], ["updated_at", "2016-12-07 17:01:13.423277"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.427182"], ["updated_at", "2016-12-07 17:01:13.427182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.435765"], ["updated_at", "2016-12-07 17:01:13.435765"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.437563"], ["updated_at", "2016-12-07 17:01:13.437563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e20d17ce-055a-4933-b99f-4d0d09ce3b10' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e20d17ce-055a-4933-b99f-4d0d09ce3b10"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.447700"], ["updated_at", "2016-12-07 17:01:13.447700"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e20d17ce-055a-4933-b99f-4d0d09ce3b10', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.447700', "updated_at" = '2016-12-07 17:01:13.447700', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.451445', "updated_at" = '2016-12-07 17:01:13.451670', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e20d17ce-055a-4933-b99f-4d0d09ce3b10' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.463126"], ["updated_at", "2016-12-07 17:01:13.463126"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.464667"], ["updated_at", "2016-12-07 17:01:13.464667"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.465709"], ["updated_at", "2016-12-07 17:01:13.465709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.472903"], ["updated_at", "2016-12-07 17:01:13.472903"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.475185"], ["updated_at", "2016-12-07 17:01:13.475185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.484206"], ["updated_at", "2016-12-07 17:01:13.484206"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.487644"], ["updated_at", "2016-12-07 17:01:13.487644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'db16973a-5fc4-4105-bfe2-969a7f29e628' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "db16973a-5fc4-4105-bfe2-969a7f29e628"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.498870"], ["updated_at", "2016-12-07 17:01:13.498870"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'db16973a-5fc4-4105-bfe2-969a7f29e628', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.498870', "updated_at" = '2016-12-07 17:01:13.498870', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.502574', "updated_at" = '2016-12-07 17:01:13.502884', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'db16973a-5fc4-4105-bfe2-969a7f29e628' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.514924"], ["updated_at", "2016-12-07 17:01:13.514924"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.516515"], ["updated_at", "2016-12-07 17:01:13.516515"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.517674"], ["updated_at", "2016-12-07 17:01:13.517674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.527206"], ["updated_at", "2016-12-07 17:01:13.527206"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.530768"], ["updated_at", "2016-12-07 17:01:13.530768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.539599"], ["updated_at", "2016-12-07 17:01:13.539599"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.541817"], ["updated_at", "2016-12-07 17:01:13.541817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '87bf303a-3dd2-4b3b-a15f-56179eeab9c0' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "87bf303a-3dd2-4b3b-a15f-56179eeab9c0"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.556467"], ["updated_at", "2016-12-07 17:01:13.556467"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '87bf303a-3dd2-4b3b-a15f-56179eeab9c0', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.556467', "updated_at" = '2016-12-07 17:01:13.556467', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.562007', "updated_at" = '2016-12-07 17:01:13.562416', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '87bf303a-3dd2-4b3b-a15f-56179eeab9c0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.575751"], ["updated_at", "2016-12-07 17:01:13.575751"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.578318"], ["updated_at", "2016-12-07 17:01:13.578318"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.580057"], ["updated_at", "2016-12-07 17:01:13.580057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.588977"], ["updated_at", "2016-12-07 17:01:13.588977"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.591287"], ["updated_at", "2016-12-07 17:01:13.591287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.600095"], ["updated_at", "2016-12-07 17:01:13.600095"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.601914"], ["updated_at", "2016-12-07 17:01:13.601914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '487e75b7-af75-41c3-9bd8-4335abc12d8d' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "487e75b7-af75-41c3-9bd8-4335abc12d8d"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.609646"], ["updated_at", "2016-12-07 17:01:13.609646"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '487e75b7-af75-41c3-9bd8-4335abc12d8d', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.609646', "updated_at" = '2016-12-07 17:01:13.609646', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.614623', "updated_at" = '2016-12-07 17:01:13.615007', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '487e75b7-af75-41c3-9bd8-4335abc12d8d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.625865"], ["updated_at", "2016-12-07 17:01:13.625865"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.627373"], ["updated_at", "2016-12-07 17:01:13.627373"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.628505"], ["updated_at", "2016-12-07 17:01:13.628505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.634600"], ["updated_at", "2016-12-07 17:01:13.634600"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.636878"], ["updated_at", "2016-12-07 17:01:13.636878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.648300"], ["updated_at", "2016-12-07 17:01:13.648300"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.650673"], ["updated_at", "2016-12-07 17:01:13.650673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '57828b8e-972d-4c1e-997c-f6541eadee8d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "57828b8e-972d-4c1e-997c-f6541eadee8d"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.663783"], ["updated_at", "2016-12-07 17:01:13.663783"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '57828b8e-972d-4c1e-997c-f6541eadee8d', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.663783', "updated_at" = '2016-12-07 17:01:13.663783', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.668888', "updated_at" = '2016-12-07 17:01:13.669170', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '57828b8e-972d-4c1e-997c-f6541eadee8d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.678324"], ["updated_at", "2016-12-07 17:01:13.678324"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.679738"], ["updated_at", "2016-12-07 17:01:13.679738"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.680801"], ["updated_at", "2016-12-07 17:01:13.680801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.686565"], ["updated_at", "2016-12-07 17:01:13.686565"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.689329"], ["updated_at", "2016-12-07 17:01:13.689329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:01:13.698421"], ["updated_at", "2016-12-07 17:01:13.698421"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:01:13.700792"], ["updated_at", "2016-12-07 17:01:13.700792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f9b032f5-71d3-4833-a56e-a3aa82ee4d49' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f9b032f5-71d3-4833-a56e-a3aa82ee4d49"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.708819"], ["updated_at", "2016-12-07 17:01:13.708819"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f9b032f5-71d3-4833-a56e-a3aa82ee4d49', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.708819', "updated_at" = '2016-12-07 17:01:13.708819', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.713746', "updated_at" = '2016-12-07 17:01:13.714097', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f9b032f5-71d3-4833-a56e-a3aa82ee4d49' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:01:13.724854"], ["updated_at", "2016-12-07 17:01:13.724854"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.726345"], ["updated_at", "2016-12-07 17:01:13.726345"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:01:13.727825"], ["updated_at", "2016-12-07 17:01:13.727825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:01:13.734143"], ["updated_at", "2016-12-07 17:01:13.734143"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:01:13.736190"], ["updated_at", "2016-12-07 17:01:13.736190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.7ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6c3b63bb-b578-4e88-a3d5-a7843a15feab' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6c3b63bb-b578-4e88-a3d5-a7843a15feab"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:01:13.747017"], ["updated_at", "2016-12-07 17:01:13.747017"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6c3b63bb-b578-4e88-a3d5-a7843a15feab', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:01:13.747017', "updated_at" = '2016-12-07 17:01:13.747017', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:01:13.753031', "updated_at" = '2016-12-07 17:01:13.753357', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6c3b63bb-b578-4e88-a3d5-a7843a15feab' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:17:59.722763"], ["updated_at", "2016-12-07 17:17:59.722763"]] SQL (2.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:17:59.740357"], ["updated_at", "2016-12-07 17:17:59.740357"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:17:59.744739"], ["updated_at", "2016-12-07 17:17:59.744739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.8ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (2.0ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:17:59.878043"], ["updated_at", "2016-12-07 17:17:59.878043"]] SQL (1.0ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:17:59.890355"], ["updated_at", "2016-12-07 17:17:59.890355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.8ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (1.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:17:59.932041"], ["updated_at", "2016-12-07 17:17:59.932041"]] SQL (0.9ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:17:59.940053"], ["updated_at", "2016-12-07 17:17:59.940053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.6ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '87209357-e76b-4842-8f31-c53dc5ac094d' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (2.5ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "87209357-e76b-4842-8f31-c53dc5ac094d"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:17:59.942613"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:17:59.981985"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '87209357-e76b-4842-8f31-c53dc5ac094d', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:17:59.942613', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:17:59.981985', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:17:59.988324', "updated_at" = '2016-12-07 17:17:59.988582', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.4ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '87209357-e76b-4842-8f31-c53dc5ac094d' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.039484"], ["updated_at", "2016-12-07 17:18:00.039484"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.041033"], ["updated_at", "2016-12-07 17:18:00.041033"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.042104"], ["updated_at", "2016-12-07 17:18:00.042104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.3ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.050518"], ["updated_at", "2016-12-07 17:18:00.050518"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.054326"], ["updated_at", "2016-12-07 17:18:00.054326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.063121"], ["updated_at", "2016-12-07 17:18:00.063121"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.065084"], ["updated_at", "2016-12-07 17:18:00.065084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'fc3b1576-8a58-4f8b-95e5-3d16976352ae' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "fc3b1576-8a58-4f8b-95e5-3d16976352ae"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:18:00.066668"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:00.074572"], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'fc3b1576-8a58-4f8b-95e5-3d16976352ae', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:18:00.066668', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:00.074572', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.080315', "updated_at" = '2016-12-07 17:18:00.080598', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'fc3b1576-8a58-4f8b-95e5-3d16976352ae' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.091977"], ["updated_at", "2016-12-07 17:18:00.091977"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.093437"], ["updated_at", "2016-12-07 17:18:00.093437"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.094508"], ["updated_at", "2016-12-07 17:18:00.094508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.100437"], ["updated_at", "2016-12-07 17:18:00.100437"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.102711"], ["updated_at", "2016-12-07 17:18:00.102711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.109327"], ["updated_at", "2016-12-07 17:18:00.109327"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.111079"], ["updated_at", "2016-12-07 17:18:00.111079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8e3bc0df-7c8c-464e-b4be-8e3450db8dec' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8e3bc0df-7c8c-464e-b4be-8e3450db8dec"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.118493"], ["updated_at", "2016-12-07 17:18:00.118493"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8e3bc0df-7c8c-464e-b4be-8e3450db8dec', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.118493', "updated_at" = '2016-12-07 17:18:00.118493', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.125779', "updated_at" = '2016-12-07 17:18:00.126441', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8e3bc0df-7c8c-464e-b4be-8e3450db8dec' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.140032"], ["updated_at", "2016-12-07 17:18:00.140032"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.141471"], ["updated_at", "2016-12-07 17:18:00.141471"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.142568"], ["updated_at", "2016-12-07 17:18:00.142568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.148590"], ["updated_at", "2016-12-07 17:18:00.148590"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.150990"], ["updated_at", "2016-12-07 17:18:00.150990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.161681"], ["updated_at", "2016-12-07 17:18:00.161681"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.163425"], ["updated_at", "2016-12-07 17:18:00.163425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5c5ffec4-7213-461c-8cb3-b7b51bd62fae' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5c5ffec4-7213-461c-8cb3-b7b51bd62fae"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.171694"], ["updated_at", "2016-12-07 17:18:00.171694"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5c5ffec4-7213-461c-8cb3-b7b51bd62fae', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.171694', "updated_at" = '2016-12-07 17:18:00.171694', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.176121', "updated_at" = '2016-12-07 17:18:00.176424', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5c5ffec4-7213-461c-8cb3-b7b51bd62fae' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.187624"], ["updated_at", "2016-12-07 17:18:00.187624"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.189350"], ["updated_at", "2016-12-07 17:18:00.189350"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.190484"], ["updated_at", "2016-12-07 17:18:00.190484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.215815"], ["updated_at", "2016-12-07 17:18:00.215815"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.218210"], ["updated_at", "2016-12-07 17:18:00.218210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.228167"], ["updated_at", "2016-12-07 17:18:00.228167"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.230544"], ["updated_at", "2016-12-07 17:18:00.230544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '28efcc51-6de7-4566-b3ae-545c376f5ba0' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "28efcc51-6de7-4566-b3ae-545c376f5ba0"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.240303"], ["updated_at", "2016-12-07 17:18:00.240303"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '28efcc51-6de7-4566-b3ae-545c376f5ba0', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.240303', "updated_at" = '2016-12-07 17:18:00.240303', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.244307', "updated_at" = '2016-12-07 17:18:00.244563', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '28efcc51-6de7-4566-b3ae-545c376f5ba0' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.254174"], ["updated_at", "2016-12-07 17:18:00.254174"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.255576"], ["updated_at", "2016-12-07 17:18:00.255576"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.256666"], ["updated_at", "2016-12-07 17:18:00.256666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.262854"], ["updated_at", "2016-12-07 17:18:00.262854"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.265680"], ["updated_at", "2016-12-07 17:18:00.265680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.274920"], ["updated_at", "2016-12-07 17:18:00.274920"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.277036"], ["updated_at", "2016-12-07 17:18:00.277036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '76dd2fc0-33ef-40cc-94a1-88ba10005ee4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "76dd2fc0-33ef-40cc-94a1-88ba10005ee4"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.287281"], ["updated_at", "2016-12-07 17:18:00.287281"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '76dd2fc0-33ef-40cc-94a1-88ba10005ee4', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.287281', "updated_at" = '2016-12-07 17:18:00.287281', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.292431', "updated_at" = '2016-12-07 17:18:00.292754', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '76dd2fc0-33ef-40cc-94a1-88ba10005ee4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.305049"], ["updated_at", "2016-12-07 17:18:00.305049"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.307578"], ["updated_at", "2016-12-07 17:18:00.307578"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.309292"], ["updated_at", "2016-12-07 17:18:00.309292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.320096"], ["updated_at", "2016-12-07 17:18:00.320096"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.322627"], ["updated_at", "2016-12-07 17:18:00.322627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.331551"], ["updated_at", "2016-12-07 17:18:00.331551"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.333487"], ["updated_at", "2016-12-07 17:18:00.333487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5c80b423-8a94-43cc-a523-eca1963649ce' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5c80b423-8a94-43cc-a523-eca1963649ce"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.341995"], ["updated_at", "2016-12-07 17:18:00.341995"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5c80b423-8a94-43cc-a523-eca1963649ce', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.341995', "updated_at" = '2016-12-07 17:18:00.341995', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.345508', "updated_at" = '2016-12-07 17:18:00.345748', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5c80b423-8a94-43cc-a523-eca1963649ce' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.355102"], ["updated_at", "2016-12-07 17:18:00.355102"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.356523"], ["updated_at", "2016-12-07 17:18:00.356523"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.357598"], ["updated_at", "2016-12-07 17:18:00.357598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.365050"], ["updated_at", "2016-12-07 17:18:00.365050"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.369276"], ["updated_at", "2016-12-07 17:18:00.369276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.381166"], ["updated_at", "2016-12-07 17:18:00.381166"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.385024"], ["updated_at", "2016-12-07 17:18:00.385024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'eda0a1eb-d63f-44c5-a98b-918e012aa6be' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "eda0a1eb-d63f-44c5-a98b-918e012aa6be"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.395694"], ["updated_at", "2016-12-07 17:18:00.395694"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'eda0a1eb-d63f-44c5-a98b-918e012aa6be', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.395694', "updated_at" = '2016-12-07 17:18:00.395694', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.399539', "updated_at" = '2016-12-07 17:18:00.399864', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'eda0a1eb-d63f-44c5-a98b-918e012aa6be' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.413308"], ["updated_at", "2016-12-07 17:18:00.413308"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.415737"], ["updated_at", "2016-12-07 17:18:00.415737"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.417473"], ["updated_at", "2016-12-07 17:18:00.417473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.424936"], ["updated_at", "2016-12-07 17:18:00.424936"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.427778"], ["updated_at", "2016-12-07 17:18:00.427778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.435718"], ["updated_at", "2016-12-07 17:18:00.435718"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.438167"], ["updated_at", "2016-12-07 17:18:00.438167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8015f807-c195-4b14-80bc-4e0b5cef7bea' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8015f807-c195-4b14-80bc-4e0b5cef7bea"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.446951"], ["updated_at", "2016-12-07 17:18:00.446951"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8015f807-c195-4b14-80bc-4e0b5cef7bea', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.446951', "updated_at" = '2016-12-07 17:18:00.446951', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.451580', "updated_at" = '2016-12-07 17:18:00.451882', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8015f807-c195-4b14-80bc-4e0b5cef7bea' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.464096"], ["updated_at", "2016-12-07 17:18:00.464096"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.466593"], ["updated_at", "2016-12-07 17:18:00.466593"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.468318"], ["updated_at", "2016-12-07 17:18:00.468318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.476568"], ["updated_at", "2016-12-07 17:18:00.476568"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.479799"], ["updated_at", "2016-12-07 17:18:00.479799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.487004"], ["updated_at", "2016-12-07 17:18:00.487004"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.489164"], ["updated_at", "2016-12-07 17:18:00.489164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'acc2ee65-1bf9-45ae-be51-71212d53fff4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "acc2ee65-1bf9-45ae-be51-71212d53fff4"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.498437"], ["updated_at", "2016-12-07 17:18:00.498437"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'acc2ee65-1bf9-45ae-be51-71212d53fff4', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.498437', "updated_at" = '2016-12-07 17:18:00.498437', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.502141', "updated_at" = '2016-12-07 17:18:00.502559', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'acc2ee65-1bf9-45ae-be51-71212d53fff4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.514525"], ["updated_at", "2016-12-07 17:18:00.514525"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.517082"], ["updated_at", "2016-12-07 17:18:00.517082"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.518784"], ["updated_at", "2016-12-07 17:18:00.518784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.526682"], ["updated_at", "2016-12-07 17:18:00.526682"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.529922"], ["updated_at", "2016-12-07 17:18:00.529922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:00.538431"], ["updated_at", "2016-12-07 17:18:00.538431"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:00.541198"], ["updated_at", "2016-12-07 17:18:00.541198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8b529006-cfad-41bd-9aeb-07947255bf61' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8b529006-cfad-41bd-9aeb-07947255bf61"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.549423"], ["updated_at", "2016-12-07 17:18:00.549423"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8b529006-cfad-41bd-9aeb-07947255bf61', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.549423', "updated_at" = '2016-12-07 17:18:00.549423', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.553204', "updated_at" = '2016-12-07 17:18:00.553490', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8b529006-cfad-41bd-9aeb-07947255bf61' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:00.562666"], ["updated_at", "2016-12-07 17:18:00.562666"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.563987"], ["updated_at", "2016-12-07 17:18:00.563987"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:00.565008"], ["updated_at", "2016-12-07 17:18:00.565008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:00.571403"], ["updated_at", "2016-12-07 17:18:00.571403"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:00.574164"], ["updated_at", "2016-12-07 17:18:00.574164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '96f39e74-d28b-40dd-acd0-391ea25ca13c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "96f39e74-d28b-40dd-acd0-391ea25ca13c"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:00.583189"], ["updated_at", "2016-12-07 17:18:00.583189"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '96f39e74-d28b-40dd-acd0-391ea25ca13c', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:00.583189', "updated_at" = '2016-12-07 17:18:00.583189', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:00.586657', "updated_at" = '2016-12-07 17:18:00.586878', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '96f39e74-d28b-40dd-acd0-391ea25ca13c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:43.900946"], ["updated_at", "2016-12-07 17:18:43.900946"]] SQL (0.6ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:43.915288"], ["updated_at", "2016-12-07 17:18:43.915288"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:43.918650"], ["updated_at", "2016-12-07 17:18:43.918650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.033396"], ["updated_at", "2016-12-07 17:18:44.033396"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.040973"], ["updated_at", "2016-12-07 17:18:44.040973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.080511"], ["updated_at", "2016-12-07 17:18:44.080511"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.087810"], ["updated_at", "2016-12-07 17:18:44.087810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '688cdc31-0a4c-4524-888e-7d1c177e346b' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "688cdc31-0a4c-4524-888e-7d1c177e346b"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:18:44.090064"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:44.126306"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '688cdc31-0a4c-4524-888e-7d1c177e346b', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:18:44.090064', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:44.126306', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.130311', "updated_at" = '2016-12-07 17:18:44.130545', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '688cdc31-0a4c-4524-888e-7d1c177e346b' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '5400ddd1-4cbd-4357-bac9-3055bd13e2ff' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "5400ddd1-4cbd-4357-bac9-3055bd13e2ff"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-11-29 17:18:44.148298"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:44.154728"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '5400ddd1-4cbd-4357-bac9-3055bd13e2ff', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-11-29 17:18:44.148298', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:44.154728', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.158219', "updated_at" = '2016-12-07 17:18:44.158488', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '5400ddd1-4cbd-4357-bac9-3055bd13e2ff' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'ac78b093-e810-4d98-8ec9-9248d0d80b56' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "ac78b093-e810-4d98-8ec9-9248d0d80b56"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 17:18:44.163078"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:44.168382"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'ac78b093-e810-4d98-8ec9-9248d0d80b56', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 17:18:44.163078', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:44.168382', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.171704', "updated_at" = '2016-12-07 17:18:44.172013', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'ac78b093-e810-4d98-8ec9-9248d0d80b56' AND "ems_registrations"."id" != 3) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '7f7ac4f6-0c32-4894-bd84-fb1cf07c4d28' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "7f7ac4f6-0c32-4894-bd84-fb1cf07c4d28"], ["amount_paid_cents", 10000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:18:44.176756"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:44.182053"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '7f7ac4f6-0c32-4894-bd84-fb1cf07c4d28', "amount_paid_cents" = 10000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:18:44.176756', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:44.182053', "id" = 4, "receipt_code" = '001-004', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 4], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.185371', "updated_at" = '2016-12-07 17:18:44.185601', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 4], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '7f7ac4f6-0c32-4894-bd84-fb1cf07c4d28' AND "ems_registrations"."id" != 4) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.213800"], ["updated_at", "2016-12-07 17:18:44.213800"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.215304"], ["updated_at", "2016-12-07 17:18:44.215304"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.216305"], ["updated_at", "2016-12-07 17:18:44.216305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.224059"], ["updated_at", "2016-12-07 17:18:44.224059"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.228164"], ["updated_at", "2016-12-07 17:18:44.228164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.237089"], ["updated_at", "2016-12-07 17:18:44.237089"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.239533"], ["updated_at", "2016-12-07 17:18:44.239533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e3c5f9ba-bf6a-4d3e-89e7-326387805ec4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e3c5f9ba-bf6a-4d3e-89e7-326387805ec4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:18:44.241349"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:18:44.249456"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e3c5f9ba-bf6a-4d3e-89e7-326387805ec4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:18:44.241349', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:18:44.249456', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.252994', "updated_at" = '2016-12-07 17:18:44.253264', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e3c5f9ba-bf6a-4d3e-89e7-326387805ec4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.263547"], ["updated_at", "2016-12-07 17:18:44.263547"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.265028"], ["updated_at", "2016-12-07 17:18:44.265028"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.266046"], ["updated_at", "2016-12-07 17:18:44.266046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.271962"], ["updated_at", "2016-12-07 17:18:44.271962"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.274236"], ["updated_at", "2016-12-07 17:18:44.274236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.280908"], ["updated_at", "2016-12-07 17:18:44.280908"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.282584"], ["updated_at", "2016-12-07 17:18:44.282584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '1c45aea9-a052-4e9a-a5ab-36beb244a634' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "1c45aea9-a052-4e9a-a5ab-36beb244a634"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.290674"], ["updated_at", "2016-12-07 17:18:44.290674"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '1c45aea9-a052-4e9a-a5ab-36beb244a634', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.290674', "updated_at" = '2016-12-07 17:18:44.290674', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.320439', "updated_at" = '2016-12-07 17:18:44.320776', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '1c45aea9-a052-4e9a-a5ab-36beb244a634' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.331067"], ["updated_at", "2016-12-07 17:18:44.331067"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.332434"], ["updated_at", "2016-12-07 17:18:44.332434"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.333555"], ["updated_at", "2016-12-07 17:18:44.333555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.339948"], ["updated_at", "2016-12-07 17:18:44.339948"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.342217"], ["updated_at", "2016-12-07 17:18:44.342217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.350234"], ["updated_at", "2016-12-07 17:18:44.350234"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.352006"], ["updated_at", "2016-12-07 17:18:44.352006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '8ffe7e3b-b2b5-40ce-8f21-fdb80fd7360e' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "8ffe7e3b-b2b5-40ce-8f21-fdb80fd7360e"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.359806"], ["updated_at", "2016-12-07 17:18:44.359806"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '8ffe7e3b-b2b5-40ce-8f21-fdb80fd7360e', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.359806', "updated_at" = '2016-12-07 17:18:44.359806', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.364509', "updated_at" = '2016-12-07 17:18:44.364814', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '8ffe7e3b-b2b5-40ce-8f21-fdb80fd7360e' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.375301"], ["updated_at", "2016-12-07 17:18:44.375301"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.376822"], ["updated_at", "2016-12-07 17:18:44.376822"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.377919"], ["updated_at", "2016-12-07 17:18:44.377919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.385219"], ["updated_at", "2016-12-07 17:18:44.385219"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.387710"], ["updated_at", "2016-12-07 17:18:44.387710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.397005"], ["updated_at", "2016-12-07 17:18:44.397005"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.398918"], ["updated_at", "2016-12-07 17:18:44.398918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '21b2a6e3-07b1-4ac1-897c-8a0522d5094c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "21b2a6e3-07b1-4ac1-897c-8a0522d5094c"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.407028"], ["updated_at", "2016-12-07 17:18:44.407028"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '21b2a6e3-07b1-4ac1-897c-8a0522d5094c', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.407028', "updated_at" = '2016-12-07 17:18:44.407028', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.411746', "updated_at" = '2016-12-07 17:18:44.412070', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '21b2a6e3-07b1-4ac1-897c-8a0522d5094c' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.422178"], ["updated_at", "2016-12-07 17:18:44.422178"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.423697"], ["updated_at", "2016-12-07 17:18:44.423697"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.424797"], ["updated_at", "2016-12-07 17:18:44.424797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.432319"], ["updated_at", "2016-12-07 17:18:44.432319"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.436650"], ["updated_at", "2016-12-07 17:18:44.436650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.447503"], ["updated_at", "2016-12-07 17:18:44.447503"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.449672"], ["updated_at", "2016-12-07 17:18:44.449672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6320866f-b32e-4622-8d92-b33fb01b09b1' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6320866f-b32e-4622-8d92-b33fb01b09b1"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.459604"], ["updated_at", "2016-12-07 17:18:44.459604"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6320866f-b32e-4622-8d92-b33fb01b09b1', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.459604', "updated_at" = '2016-12-07 17:18:44.459604', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.464236', "updated_at" = '2016-12-07 17:18:44.464521', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6320866f-b32e-4622-8d92-b33fb01b09b1' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.474205"], ["updated_at", "2016-12-07 17:18:44.474205"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.475601"], ["updated_at", "2016-12-07 17:18:44.475601"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.476695"], ["updated_at", "2016-12-07 17:18:44.476695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.4ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.482475"], ["updated_at", "2016-12-07 17:18:44.482475"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.487227"], ["updated_at", "2016-12-07 17:18:44.487227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.499212"], ["updated_at", "2016-12-07 17:18:44.499212"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.501624"], ["updated_at", "2016-12-07 17:18:44.501624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '0c643220-51a7-4837-a40e-2739d0639476' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "0c643220-51a7-4837-a40e-2739d0639476"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.510948"], ["updated_at", "2016-12-07 17:18:44.510948"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '0c643220-51a7-4837-a40e-2739d0639476', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.510948', "updated_at" = '2016-12-07 17:18:44.510948', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.515430', "updated_at" = '2016-12-07 17:18:44.515700', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '0c643220-51a7-4837-a40e-2739d0639476' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.525373"], ["updated_at", "2016-12-07 17:18:44.525373"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.528144"], ["updated_at", "2016-12-07 17:18:44.528144"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.530184"], ["updated_at", "2016-12-07 17:18:44.530184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.538314"], ["updated_at", "2016-12-07 17:18:44.538314"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.540839"], ["updated_at", "2016-12-07 17:18:44.540839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.4ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.550549"], ["updated_at", "2016-12-07 17:18:44.550549"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.554778"], ["updated_at", "2016-12-07 17:18:44.554778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.3ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '35f5985c-b6bc-4615-9873-2ccaa8f60c98' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "35f5985c-b6bc-4615-9873-2ccaa8f60c98"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.567281"], ["updated_at", "2016-12-07 17:18:44.567281"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '35f5985c-b6bc-4615-9873-2ccaa8f60c98', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.567281', "updated_at" = '2016-12-07 17:18:44.567281', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.570936', "updated_at" = '2016-12-07 17:18:44.571167', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '35f5985c-b6bc-4615-9873-2ccaa8f60c98' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.583371"], ["updated_at", "2016-12-07 17:18:44.583371"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.585925"], ["updated_at", "2016-12-07 17:18:44.585925"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.587606"], ["updated_at", "2016-12-07 17:18:44.587606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.597080"], ["updated_at", "2016-12-07 17:18:44.597080"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.599506"], ["updated_at", "2016-12-07 17:18:44.599506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.606611"], ["updated_at", "2016-12-07 17:18:44.606611"]] SQL (0.3ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.608647"], ["updated_at", "2016-12-07 17:18:44.608647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'be3a4533-4c39-48bb-8853-03e028559c71' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "be3a4533-4c39-48bb-8853-03e028559c71"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.623087"], ["updated_at", "2016-12-07 17:18:44.623087"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'be3a4533-4c39-48bb-8853-03e028559c71', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.623087', "updated_at" = '2016-12-07 17:18:44.623087', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.627058', "updated_at" = '2016-12-07 17:18:44.627304', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'be3a4533-4c39-48bb-8853-03e028559c71' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.638418"], ["updated_at", "2016-12-07 17:18:44.638418"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.640228"], ["updated_at", "2016-12-07 17:18:44.640228"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.642605"], ["updated_at", "2016-12-07 17:18:44.642605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.651170"], ["updated_at", "2016-12-07 17:18:44.651170"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.655067"], ["updated_at", "2016-12-07 17:18:44.655067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.666910"], ["updated_at", "2016-12-07 17:18:44.666910"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.668886"], ["updated_at", "2016-12-07 17:18:44.668886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '42350f2a-fa82-4a4c-8ab9-ae2e58e44b7a' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "42350f2a-fa82-4a4c-8ab9-ae2e58e44b7a"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.676778"], ["updated_at", "2016-12-07 17:18:44.676778"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '42350f2a-fa82-4a4c-8ab9-ae2e58e44b7a', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.676778', "updated_at" = '2016-12-07 17:18:44.676778', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.680302', "updated_at" = '2016-12-07 17:18:44.680548', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '42350f2a-fa82-4a4c-8ab9-ae2e58e44b7a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.692110"], ["updated_at", "2016-12-07 17:18:44.692110"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.694598"], ["updated_at", "2016-12-07 17:18:44.694598"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.696383"], ["updated_at", "2016-12-07 17:18:44.696383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.703789"], ["updated_at", "2016-12-07 17:18:44.703789"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.705795"], ["updated_at", "2016-12-07 17:18:44.705795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:18:44.712753"], ["updated_at", "2016-12-07 17:18:44.712753"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:18:44.714472"], ["updated_at", "2016-12-07 17:18:44.714472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'a2b7e7a3-b7a7-41ae-b40f-baae344ef945' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "a2b7e7a3-b7a7-41ae-b40f-baae344ef945"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.721978"], ["updated_at", "2016-12-07 17:18:44.721978"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'a2b7e7a3-b7a7-41ae-b40f-baae344ef945', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.721978', "updated_at" = '2016-12-07 17:18:44.721978', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.725672', "updated_at" = '2016-12-07 17:18:44.725925', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'a2b7e7a3-b7a7-41ae-b40f-baae344ef945' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:18:44.736012"], ["updated_at", "2016-12-07 17:18:44.736012"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.737635"], ["updated_at", "2016-12-07 17:18:44.737635"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:18:44.739087"], ["updated_at", "2016-12-07 17:18:44.739087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:18:44.748373"], ["updated_at", "2016-12-07 17:18:44.748373"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:18:44.750892"], ["updated_at", "2016-12-07 17:18:44.750892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'e55e2a1b-3db1-4e25-82a6-42c39f405d08' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "e55e2a1b-3db1-4e25-82a6-42c39f405d08"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:18:44.758040"], ["updated_at", "2016-12-07 17:18:44.758040"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'e55e2a1b-3db1-4e25-82a6-42c39f405d08', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:18:44.758040', "updated_at" = '2016-12-07 17:18:44.758040', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:18:44.761628', "updated_at" = '2016-12-07 17:18:44.761892', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'e55e2a1b-3db1-4e25-82a6-42c39f405d08' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction Adding themes to assets [true] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.029969"], ["updated_at", "2016-12-07 17:19:08.029969"]] SQL (0.3ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.048899"], ["updated_at", "2016-12-07 17:19:08.048899"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.050602"], ["updated_at", "2016-12-07 17:19:08.050602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.2ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.177553"], ["updated_at", "2016-12-07 17:19:08.177553"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.185391"], ["updated_at", "2016-12-07 17:19:08.185391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.219917"], ["updated_at", "2016-12-07 17:19:08.219917"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.226343"], ["updated_at", "2016-12-07 17:19:08.226343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '4e3447c7-649e-4569-a73c-6a0328284b7a' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "4e3447c7-649e-4569-a73c-6a0328284b7a"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:19:08.227971"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:19:08.264253"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.4ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '4e3447c7-649e-4569-a73c-6a0328284b7a', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:19:08.227971', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:19:08.264253', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.2ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.270920', "updated_at" = '2016-12-07 17:19:08.271463', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '4e3447c7-649e-4569-a73c-6a0328284b7a' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '84ac4ffd-f703-4d14-84c8-9830a7744c00' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "84ac4ffd-f703-4d14-84c8-9830a7744c00"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-11-29 17:19:08.292065"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:19:08.297738"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '84ac4ffd-f703-4d14-84c8-9830a7744c00', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-11-29 17:19:08.292065', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:19:08.297738', "id" = 2, "receipt_code" = '001-002', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.301184', "updated_at" = '2016-12-07 17:19:08.301423', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 2], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '84ac4ffd-f703-4d14-84c8-9830a7744c00' AND "ems_registrations"."id" != 2) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '89eea5ad-f24a-4ead-ac52-c9ae357e9e6c' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "89eea5ad-f24a-4ead-ac52-c9ae357e9e6c"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-07 17:19:08.306087"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:19:08.311543"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '89eea5ad-f24a-4ead-ac52-c9ae357e9e6c', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-07 17:19:08.306087', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:19:08.311543', "id" = 3, "receipt_code" = '001-003', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.315191', "updated_at" = '2016-12-07 17:19:08.315457', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 3], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '89eea5ad-f24a-4ead-ac52-c9ae357e9e6c' AND "ems_registrations"."id" != 3) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '25a177b3-ef39-460a-bd18-75ee6be9674f' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.1ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "25a177b3-ef39-460a-bd18-75ee6be9674f"], ["amount_paid_cents", 10000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-11-29 17:19:08.320393"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:19:08.325976"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '25a177b3-ef39-460a-bd18-75ee6be9674f', "amount_paid_cents" = 10000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-11-29 17:19:08.320393', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:19:08.325976', "id" = 4, "receipt_code" = '001-004', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 4], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.329281', "updated_at" = '2016-12-07 17:19:08.329538', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 4], ["lock_version", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '25a177b3-ef39-460a-bd18-75ee6be9674f' AND "ems_registrations"."id" != 4) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.339789"], ["updated_at", "2016-12-07 17:19:08.339789"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.342282"], ["updated_at", "2016-12-07 17:19:08.342282"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.343995"], ["updated_at", "2016-12-07 17:19:08.343995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.352347"], ["updated_at", "2016-12-07 17:19:08.352347"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.354764"], ["updated_at", "2016-12-07 17:19:08.354764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.3ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.364108"], ["updated_at", "2016-12-07 17:19:08.364108"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.366732"], ["updated_at", "2016-12-07 17:19:08.366732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '9d99a172-c433-45b3-849d-dfbdd43eb1e3' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "created_at", "aasm_state", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "9d99a172-c433-45b3-849d-dfbdd43eb1e3"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["created_at", "2016-12-04 17:19:08.368501"], ["aasm_state", "accepted"], ["updated_at", "2016-12-07 17:19:08.375181"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '9d99a172-c433-45b3-849d-dfbdd43eb1e3', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "created_at" = '2016-12-04 17:19:08.368501', "aasm_state" = 'accepted', "updated_at" = '2016-12-07 17:19:08.375181', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.378617', "updated_at" = '2016-12-07 17:19:08.378852', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '9d99a172-c433-45b3-849d-dfbdd43eb1e3' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.408201"], ["updated_at", "2016-12-07 17:19:08.408201"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.409643"], ["updated_at", "2016-12-07 17:19:08.409643"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.410698"], ["updated_at", "2016-12-07 17:19:08.410698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.3ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.417534"], ["updated_at", "2016-12-07 17:19:08.417534"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.422126"], ["updated_at", "2016-12-07 17:19:08.422126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.431647"], ["updated_at", "2016-12-07 17:19:08.431647"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.433456"], ["updated_at", "2016-12-07 17:19:08.433456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6b7cfa41-c63e-4d1f-974f-0ce1499958f4' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6b7cfa41-c63e-4d1f-974f-0ce1499958f4"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.464537"], ["updated_at", "2016-12-07 17:19:08.464537"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6b7cfa41-c63e-4d1f-974f-0ce1499958f4', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.464537', "updated_at" = '2016-12-07 17:19:08.464537', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.469350', "updated_at" = '2016-12-07 17:19:08.469607', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6b7cfa41-c63e-4d1f-974f-0ce1499958f4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.479044"], ["updated_at", "2016-12-07 17:19:08.479044"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.480361"], ["updated_at", "2016-12-07 17:19:08.480361"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.481388"], ["updated_at", "2016-12-07 17:19:08.481388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.487034"], ["updated_at", "2016-12-07 17:19:08.487034"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.489620"], ["updated_at", "2016-12-07 17:19:08.489620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.496543"], ["updated_at", "2016-12-07 17:19:08.496543"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.498205"], ["updated_at", "2016-12-07 17:19:08.498205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'efd2e551-2f45-4a32-a1ce-c8b3c41fda68' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.4ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "efd2e551-2f45-4a32-a1ce-c8b3c41fda68"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.509325"], ["updated_at", "2016-12-07 17:19:08.509325"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'efd2e551-2f45-4a32-a1ce-c8b3c41fda68', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.509325', "updated_at" = '2016-12-07 17:19:08.509325', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.515448', "updated_at" = '2016-12-07 17:19:08.515887', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.1ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'efd2e551-2f45-4a32-a1ce-c8b3c41fda68' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.529060"], ["updated_at", "2016-12-07 17:19:08.529060"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.531482"], ["updated_at", "2016-12-07 17:19:08.531482"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.533164"], ["updated_at", "2016-12-07 17:19:08.533164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.543277"], ["updated_at", "2016-12-07 17:19:08.543277"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.545546"], ["updated_at", "2016-12-07 17:19:08.545546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.552967"], ["updated_at", "2016-12-07 17:19:08.552967"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.555027"], ["updated_at", "2016-12-07 17:19:08.555027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '6898bde4-7e56-45c1-99d5-83c68ccd12b8' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "6898bde4-7e56-45c1-99d5-83c68ccd12b8"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.564435"], ["updated_at", "2016-12-07 17:19:08.564435"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '6898bde4-7e56-45c1-99d5-83c68ccd12b8', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.564435', "updated_at" = '2016-12-07 17:19:08.564435', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.568919', "updated_at" = '2016-12-07 17:19:08.569247', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '6898bde4-7e56-45c1-99d5-83c68ccd12b8' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.581318"], ["updated_at", "2016-12-07 17:19:08.581318"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.583874"], ["updated_at", "2016-12-07 17:19:08.583874"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.585717"], ["updated_at", "2016-12-07 17:19:08.585717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.594352"], ["updated_at", "2016-12-07 17:19:08.594352"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.596247"], ["updated_at", "2016-12-07 17:19:08.596247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.603157"], ["updated_at", "2016-12-07 17:19:08.603157"]] SQL (0.2ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.605180"], ["updated_at", "2016-12-07 17:19:08.605180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '59d6fe72-8317-45ec-94ea-fbca0cee2fec' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "59d6fe72-8317-45ec-94ea-fbca0cee2fec"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.615075"], ["updated_at", "2016-12-07 17:19:08.615075"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '59d6fe72-8317-45ec-94ea-fbca0cee2fec', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.615075', "updated_at" = '2016-12-07 17:19:08.615075', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.619953', "updated_at" = '2016-12-07 17:19:08.620247', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '59d6fe72-8317-45ec-94ea-fbca0cee2fec' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.632745"], ["updated_at", "2016-12-07 17:19:08.632745"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.635159"], ["updated_at", "2016-12-07 17:19:08.635159"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.636840"], ["updated_at", "2016-12-07 17:19:08.636840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.644204"], ["updated_at", "2016-12-07 17:19:08.644204"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.646376"], ["updated_at", "2016-12-07 17:19:08.646376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.656015"], ["updated_at", "2016-12-07 17:19:08.656015"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.659124"], ["updated_at", "2016-12-07 17:19:08.659124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'f0741fcc-48e9-471d-8288-9f39508bf103' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "f0741fcc-48e9-471d-8288-9f39508bf103"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.674329"], ["updated_at", "2016-12-07 17:19:08.674329"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'f0741fcc-48e9-471d-8288-9f39508bf103', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.674329', "updated_at" = '2016-12-07 17:19:08.674329', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.678290', "updated_at" = '2016-12-07 17:19:08.678564', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'f0741fcc-48e9-471d-8288-9f39508bf103' AND "ems_registrations"."id" != 1) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.693574"], ["updated_at", "2016-12-07 17:19:08.693574"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.695529"], ["updated_at", "2016-12-07 17:19:08.695529"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.696873"], ["updated_at", "2016-12-07 17:19:08.696873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.703930"], ["updated_at", "2016-12-07 17:19:08.703930"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.707122"], ["updated_at", "2016-12-07 17:19:08.707122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.9ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.716272"], ["updated_at", "2016-12-07 17:19:08.716272"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.718578"], ["updated_at", "2016-12-07 17:19:08.718578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '07c3eaf6-3b58-4c66-88cd-4a410f32d242' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "07c3eaf6-3b58-4c66-88cd-4a410f32d242"], ["amount_paid_cents", 20000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.727268"], ["updated_at", "2016-12-07 17:19:08.727268"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '07c3eaf6-3b58-4c66-88cd-4a410f32d242', "amount_paid_cents" = 20000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.727268', "updated_at" = '2016-12-07 17:19:08.727268', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.730946', "updated_at" = '2016-12-07 17:19:08.731231', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '07c3eaf6-3b58-4c66-88cd-4a410f32d242' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.740307"], ["updated_at", "2016-12-07 17:19:08.740307"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.741666"], ["updated_at", "2016-12-07 17:19:08.741666"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.742837"], ["updated_at", "2016-12-07 17:19:08.742837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.0ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.749144"], ["updated_at", "2016-12-07 17:19:08.749144"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.751852"], ["updated_at", "2016-12-07 17:19:08.751852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.761055"], ["updated_at", "2016-12-07 17:19:08.761055"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.762991"], ["updated_at", "2016-12-07 17:19:08.762991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '35094415-ded9-4f97-8b9c-763e34aa96b4' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "35094415-ded9-4f97-8b9c-763e34aa96b4"], ["amount_paid_cents", 45000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.772473"], ["updated_at", "2016-12-07 17:19:08.772473"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '35094415-ded9-4f97-8b9c-763e34aa96b4', "amount_paid_cents" = 45000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.772473', "updated_at" = '2016-12-07 17:19:08.772473', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.776533', "updated_at" = '2016-12-07 17:19:08.776815', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '35094415-ded9-4f97-8b9c-763e34aa96b4' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.789238"], ["updated_at", "2016-12-07 17:19:08.789238"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.791659"], ["updated_at", "2016-12-07 17:19:08.791659"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.793456"], ["updated_at", "2016-12-07 17:19:08.793456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.802193"], ["updated_at", "2016-12-07 17:19:08.802193"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.804531"], ["updated_at", "2016-12-07 17:19:08.804531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.0ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.1ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.813384"], ["updated_at", "2016-12-07 17:19:08.813384"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.815453"], ["updated_at", "2016-12-07 17:19:08.815453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = '66c5958f-cd78-4154-bc3b-f44369734435' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.2ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "discount_value", "discount_use_percent", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "66c5958f-cd78-4154-bc3b-f44369734435"], ["amount_paid_currency", "EUR"], ["discount_value", 50], ["discount_use_percent", "t"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.824375"], ["updated_at", "2016-12-07 17:19:08.824375"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = '66c5958f-cd78-4154-bc3b-f44369734435', "amount_paid_currency" = 'EUR', "discount_value" = 50, "discount_use_percent" = 't', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.824375', "updated_at" = '2016-12-07 17:19:08.824375', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.828086', "updated_at" = '2016-12-07 17:19:08.828326', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = '66c5958f-cd78-4154-bc3b-f44369734435' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.838619"], ["updated_at", "2016-12-07 17:19:08.838619"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.840040"], ["updated_at", "2016-12-07 17:19:08.840040"]] SQL (0.0ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.841159"], ["updated_at", "2016-12-07 17:19:08.841159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.1ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.847394"], ["updated_at", "2016-12-07 17:19:08.847394"]] SQL (0.2ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.849568"], ["updated_at", "2016-12-07 17:19:08.849568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 ORDER BY row_order ASC, "ems_workshop_prices"."row_order" ASC [["account_id", 1]] WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices"."id", "ems_workshop_prices"."row_order", "ems_workshop_prices"."workshop_id" FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = 1 AND "ems_workshop_prices"."row_order" = ? ORDER BY "ems_workshop_prices"."id" ASC LIMIT 1 [["account_id", 1], ["row_order", 0]] SQL (0.2ms) INSERT INTO "ems_workshop_prices" ("account_id", "price_cents", "price_currency", "recurring_amount", "recurring_period", "recurring_number", "workshop_id", "row_order", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["price_cents", 50000], ["price_currency", "EUR"], ["recurring_amount", 10000], ["recurring_period", 30], ["recurring_number", 5], ["workshop_id", 1], ["row_order", 0], ["created_at", "2016-12-07 17:19:08.860443"], ["updated_at", "2016-12-07 17:19:08.860443"]] SQL (0.1ms) INSERT INTO "ems_workshop_price_translations" ("locale", "ems_workshop_price_id", "price_description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_price_id", 1], ["price_description", "Sample Price"], ["created_at", "2016-12-07 17:19:08.862667"], ["updated_at", "2016-12-07 17:19:08.862667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.2ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 Registration Exists (0.2ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'fab2d876-04ad-4334-8bd6-b21ffefdaf99' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_cents", "amount_paid_currency", "workshop_id", "workshop_price_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "fab2d876-04ad-4334-8bd6-b21ffefdaf99"], ["amount_paid_cents", 39000], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["workshop_price_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.876307"], ["updated_at", "2016-12-07 17:19:08.876307"], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'fab2d876-04ad-4334-8bd6-b21ffefdaf99', "amount_paid_cents" = 39000, "amount_paid_currency" = 'EUR', "workshop_id" = 1, "workshop_price_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.876307', "updated_at" = '2016-12-07 17:19:08.876307', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.881166', "updated_at" = '2016-12-07 17:19:08.881431', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'fab2d876-04ad-4334-8bd6-b21ffefdaf99' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "core_accounts" ("domain", "account_prefix", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["domain", "test.example.com"], ["account_prefix", "test"], ["created_at", "2016-12-07 17:19:08.892978"], ["updated_at", "2016-12-07 17:19:08.892978"]] SQL (0.2ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "admin"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.895764"], ["updated_at", "2016-12-07 17:19:08.895764"]] SQL (0.1ms) INSERT INTO "roles" ("name", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "beta"], ["account_id", 1], ["created_at", "2016-12-07 17:19:08.897532"], ["updated_at", "2016-12-07 17:19:08.897532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Preference Load (0.1ms) SELECT "preferences".* FROM "preferences" WHERE "preferences"."owner_id" = ? AND "preferences"."owner_type" = ? AND "preferences"."name" = ? AND "preferences"."group_id" IS NULL AND "preferences"."group_type" IS NULL ORDER BY "preferences"."id" ASC LIMIT 1 [["owner_id", 1], ["owner_type", "Account"], ["name", "default_locale"]] SQL (0.2ms) INSERT INTO "ems_workshops" ("account_id", "slug", "country_id", "base_currency", "starting_on", "ending_on", "contact_email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["slug", "test-workshop"], ["country_id", 55], ["base_currency", "EUR"], ["starting_on", "2014-12-01 00:00:00.000000"], ["ending_on", "2014-12-02 00:00:00.000000"], ["contact_email", "email@example.com"], ["created_at", "2016-12-07 17:19:08.905711"], ["updated_at", "2016-12-07 17:19:08.905711"]] SQL (0.1ms) INSERT INTO "ems_workshop_translations" ("locale", "ems_workshop_id", "title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["locale", "en"], ["ems_workshop_id", 1], ["title", "Test Workshop"], ["description", "This is a test workshop"], ["created_at", "2016-12-07 17:19:08.908961"], ["updated_at", "2016-12-07 17:19:08.908961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkshopPrice Load (0.1ms) SELECT "ems_workshop_prices".* FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? ORDER BY row_order ASC LIMIT 1 [["account_id", 1], ["workshop_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE "ems_registrations"."uuid" = 'db111af5-cbc7-4032-9d9d-68d747c20761' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "ems_workshop_prices" WHERE "ems_workshop_prices"."account_id" = ? AND "ems_workshop_prices"."workshop_id" = ? [["account_id", 1], ["workshop_id", 1]] SQL (0.3ms) INSERT INTO "ems_registrations" ("account_id", "uuid", "amount_paid_currency", "workshop_id", "aasm_state", "created_at", "updated_at", "lock_version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["uuid", "db111af5-cbc7-4032-9d9d-68d747c20761"], ["amount_paid_currency", "EUR"], ["workshop_id", 1], ["aasm_state", "accepted"], ["created_at", "2016-12-07 17:19:08.916293"], ["updated_at", "2016-12-07 17:19:08.916293"], ["lock_version", 0]] SQL (0.0ms) UPDATE "ems_workshops" SET "registrations_count" = COALESCE("registrations_count", 0) + 1 WHERE "ems_workshops"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "ems_registrations" SET "account_id" = 1, "uuid" = 'db111af5-cbc7-4032-9d9d-68d747c20761', "amount_paid_currency" = 'EUR', "workshop_id" = 1, "aasm_state" = 'accepted', "created_at" = '2016-12-07 17:19:08.916293', "updated_at" = '2016-12-07 17:19:08.916293', "id" = 1, "receipt_code" = '001-001', "lock_version" = 1 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 0]] SQL (0.1ms) UPDATE "ems_registrations" SET "process_changed_on" = '2016-12-07 17:19:08.920790', "updated_at" = '2016-12-07 17:19:08.921065', "lock_version" = 2 WHERE "ems_registrations"."id" = ? AND "ems_registrations"."lock_version" = ? [["id", 1], ["lock_version", 1]] SystemEmail Load (0.0ms) SELECT "core_system_emails".* FROM "core_system_emails" WHERE "core_system_emails"."account_id" = ? AND "core_system_emails"."emailable_id" = ? AND "core_system_emails"."emailable_type" = ? AND (email_type LIKE 'accepted') LIMIT 1 [["account_id", 1], ["emailable_id", 1], ["emailable_type", "Workshop"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Registration Exists (0.1ms) SELECT 1 AS one FROM "ems_registrations" WHERE ("ems_registrations"."uuid" = 'db111af5-cbc7-4032-9d9d-68d747c20761' AND "ems_registrations"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction