ffcrm_endpoint 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +77 -0
  4. data/Rakefile +38 -0
  5. data/app/controllers/ffcrm_endpoint/endpoints_controller.rb +26 -0
  6. data/app/views/ffcrm_endpoint/endpoints/consume.html.haml +4 -0
  7. data/app/views/ffcrm_endpoint/endpoints/consume.js.erb +0 -0
  8. data/config/routes.rb +5 -0
  9. data/lib/ffcrm_endpoint/endpoint.rb +78 -0
  10. data/lib/ffcrm_endpoint/engine.rb +16 -0
  11. data/lib/ffcrm_endpoint/version.rb +3 -0
  12. data/lib/ffcrm_endpoint.rb +4 -0
  13. data/lib/tasks/ffcrm_endpoint_tasks.rake +4 -0
  14. data/spec/controllers/endpoints_controller_spec.rb +27 -0
  15. data/spec/dummy/README.rdoc +261 -0
  16. data/spec/dummy/Rakefile +7 -0
  17. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  20. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  21. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/spec/dummy/config/application.rb +65 -0
  23. data/spec/dummy/config/boot.rb +10 -0
  24. data/spec/dummy/config/database.yml +17 -0
  25. data/spec/dummy/config/environment.rb +5 -0
  26. data/spec/dummy/config/environments/development.rb +37 -0
  27. data/spec/dummy/config/environments/production.rb +67 -0
  28. data/spec/dummy/config/environments/test.rb +37 -0
  29. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/spec/dummy/config/initializers/inflections.rb +15 -0
  31. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  32. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  33. data/spec/dummy/config/initializers/session_store.rb +8 -0
  34. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  35. data/spec/dummy/config/locales/en.yml +5 -0
  36. data/spec/dummy/config/routes.rb +58 -0
  37. data/spec/dummy/config.ru +4 -0
  38. data/spec/dummy/db/schema.rb +457 -0
  39. data/spec/dummy/log/development.log +221 -0
  40. data/spec/dummy/log/test.log +374 -0
  41. data/spec/dummy/public/404.html +26 -0
  42. data/spec/dummy/public/422.html +26 -0
  43. data/spec/dummy/public/500.html +25 -0
  44. data/spec/dummy/public/favicon.ico +0 -0
  45. data/spec/dummy/script/rails +6 -0
  46. data/spec/lib/endpoint_spec.rb +34 -0
  47. data/spec/routing/endpoint_routing_spec.rb +21 -0
  48. data/spec/spec_helper.rb +17 -0
  49. metadata +197 -0
@@ -0,0 +1,221 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (54.7ms) CREATE TABLE "account_aliases" ("id" serial primary key, "account_id" integer, "destroyed_account_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
5
+  (85.8ms) CREATE TABLE "account_contacts" ("id" serial primary key, "account_id" integer, "contact_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
6
+  (68.2ms) CREATE TABLE "account_opportunities" ("id" serial primary key, "account_id" integer, "opportunity_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
7
+  (92.5ms) CREATE TABLE "accounts" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "website" character varying(64), "toll_free_phone" character varying(32), "phone" character varying(32), "fax" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(64), "background_info" character varying(255), "rating" integer DEFAULT 0 NOT NULL, "category" character varying(32), "subscribed_users" text)
8
+  (66.3ms) CREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")
9
+  (54.5ms) CREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")
10
+  (89.8ms) CREATE TABLE "activities" ("id" serial primary key, "user_id" integer, "subject_id" integer, "subject_type" character varying(255), "action" character varying(32) DEFAULT 'created', "info" character varying(255) DEFAULT '', "private" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
11
+  (56.2ms) CREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")
12
+  (64.4ms) CREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")
13
+  (90.1ms) CREATE TABLE "addresses" ("id" serial primary key, "street1" character varying(255), "street2" character varying(255), "city" character varying(64), "state" character varying(64), "zipcode" character varying(16), "country" character varying(64), "full_address" character varying(255), "address_type" character varying(16), "addressable_id" integer, "addressable_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
14
+  (95.4ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")
15
+  (158.9ms) CREATE TABLE "avatars" ("id" serial primary key, "user_id" integer, "entity_id" integer, "entity_type" character varying(255), "image_file_size" integer, "image_file_name" character varying(255), "image_content_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
16
+  (106.4ms) CREATE TABLE "campaigns" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "status" character varying(64), "budget" decimal(12,2), "target_leads" integer, "target_conversion" float, "target_revenue" decimal(12,2), "leads_count" integer, "opportunities_count" integer, "revenue" decimal(12,2), "starts_on" date, "ends_on" date, "objectives" text, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text) 
17
+  (64.3ms) CREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")
18
+  (64.1ms) CREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")
19
+  (89.9ms) CREATE TABLE "comments" ("id" serial primary key, "user_id" integer, "commentable_id" integer, "commentable_type" character varying(255), "private" boolean, "title" character varying(255) DEFAULT '', "comment" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL)
20
+  (65.1ms) CREATE TABLE "contact_aliases" ("id" serial primary key, "contact_id" integer, "destroyed_contact_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
21
+  (56.2ms) CREATE TABLE "contact_opportunities" ("id" serial primary key, "contact_id" integer, "opportunity_id" integer, "role" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22
+  (106.7ms) CREATE TABLE "contacts" ("id" serial primary key, "user_id" integer, "lead_id" integer, "assigned_to" integer, "reports_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "department" character varying(64), "source" character varying(32), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "fax" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "born_on" date, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text) 
23
+  (84.5ms) CREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")
24
+  (62.2ms) CREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")
25
+  (106.2ms) CREATE TABLE "emails" ("id" serial primary key, "imap_message_id" character varying(255) NOT NULL, "user_id" integer, "mediator_id" integer, "mediator_type" character varying(255), "sent_from" character varying(255) NOT NULL, "sent_to" character varying(255) NOT NULL, "cc" character varying(255), "bcc" character varying(255), "subject" character varying(255), "body" text, "header" text, "sent_at" timestamp, "received_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL)
26
+  (55.9ms) CREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")
27
+  (64.8ms) CREATE TABLE "field_groups" ("id" serial primary key, "name" character varying(64), "label" character varying(128), "position" integer, "hint" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "tag_id" integer, "klass_name" character varying(32))
28
+  (114.8ms) CREATE TABLE "fields" ("id" serial primary key, "type" character varying(255), "field_group_id" integer, "position" integer, "name" character varying(64), "label" character varying(128), "hint" character varying(255), "placeholder" character varying(255), "as" character varying(32), "collection" text, "disabled" boolean, "required" boolean, "maxlength" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "pair_id" integer, "settings" text) 
29
+  (56.0ms) CREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")
30
+  (64.0ms) CREATE INDEX "index_fields_on_name" ON "fields" ("name")
31
+  (56.5ms) CREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
32
+  (15.0ms) CREATE TABLE "groups_users" ("group_id" integer, "user_id" integer) 
33
+  (64.9ms) CREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")
34
+  (55.4ms) CREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")
35
+  (63.5ms) CREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")
36
+  (97.9ms) CREATE TABLE "leads" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "company" character varying(64), "source" character varying(32), "status" character varying(32), "referred_by" character varying(64), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "rating" integer DEFAULT 0 NOT NULL, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text) 
37
+  (55.9ms) CREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")
38
+  (55.6ms) CREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")
39
+  (90.0ms) CREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
40
+  (89.4ms) CREATE TABLE "opportunities" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "source" character varying(32), "stage" character varying(32), "probability" integer, "amount" decimal(12,2), "discount" decimal(12,2), "closes_on" date, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text) 
41
+  (49.9ms) CREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")
42
+  (55.6ms) CREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")
43
+  (64.9ms) CREATE TABLE "permissions" ("id" serial primary key, "user_id" integer, "asset_id" integer, "asset_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "group_id" integer)
44
+  (56.1ms) CREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")
45
+  (422.0ms) CREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")
46
+  (63.2ms) CREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")
47
+  (98.5ms) CREATE TABLE "preferences" ("id" serial primary key, "user_id" integer, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
48
+  (64.4ms) CREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")
49
+  (106.9ms) CREATE TABLE "sessions" ("id" serial primary key, "session_id" character varying(255) NOT NULL, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
50
+  (64.0ms) CREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
51
+  (72.7ms) CREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")
52
+  (106.5ms) CREATE TABLE "settings" ("id" serial primary key, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53
+  (64.3ms) CREATE INDEX "index_settings_on_name" ON "settings" ("name")
54
+  (56.6ms) CREATE TABLE "taggings" ("id" serial primary key, "tag_id" integer, "taggable_id" integer, "tagger_id" integer, "tagger_type" character varying(255), "taggable_type" character varying(50), "context" character varying(50), "created_at" timestamp) 
55
+  (64.4ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
56
+  (55.7ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
57
+  (64.8ms) CREATE TABLE "tags" ("id" serial primary key, "name" character varying(255))
58
+  (98.3ms) CREATE TABLE "tasks" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "completed_by" integer, "name" character varying(255) DEFAULT '' NOT NULL, "asset_id" integer, "asset_type" character varying(255), "priority" character varying(32), "category" character varying(32), "bucket" character varying(32), "due_at" timestamp, "completed_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text) 
59
+  (56.0ms) CREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")
60
+  (55.5ms) CREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")
61
+  (147.9ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying(32) DEFAULT '' NOT NULL, "email" character varying(64) DEFAULT '' NOT NULL, "first_name" character varying(32), "last_name" character varying(32), "title" character varying(64), "company" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "aim" character varying(32), "yahoo" character varying(32), "google" character varying(32), "skype" character varying(32), "password_hash" character varying(255) DEFAULT '' NOT NULL, "password_salt" character varying(255) DEFAULT '' NOT NULL, "persistence_token" character varying(255) DEFAULT '' NOT NULL, "perishable_token" character varying(255) DEFAULT '' NOT NULL, "last_request_at" timestamp, "last_login_at" timestamp, "current_login_at" timestamp, "last_login_ip" character varying(255), "current_login_ip" character varying(255), "login_count" integer DEFAULT 0 NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "admin" boolean DEFAULT 'f' NOT NULL, "suspended_at" timestamp, "single_access_token" character varying(255))
62
+  (56.0ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
63
+  (55.3ms) CREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")
64
+  (55.2ms) CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")
65
+  (54.7ms) CREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")
66
+  (54.5ms) CREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")
67
+  (122.9ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying(255) NOT NULL, "item_id" integer NOT NULL, "event" character varying(512) NOT NULL, "whodunnit" character varying(255), "object" text, "created_at" timestamp, "object_changes" text, "related_id" integer, "related_type" character varying(255))
68
+  (66.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
69
+  (55.4ms) CREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")
70
+  (23.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
71
+  (64.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
72
+  (0.4ms) SELECT version FROM "schema_migrations"
73
+  (31.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312064954')
74
+ Connecting to database specified by database.yml
75
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
76
+  (2530.5ms) DROP DATABASE IF EXISTS "ffcrm_endpoint_test"
77
+  (728.5ms) CREATE DATABASE "ffcrm_endpoint_test" ENCODING = 'unicode'
78
+  (57.8ms) CREATE TABLE "account_aliases" ("id" serial primary key, "account_id" integer, "destroyed_account_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
79
+  (64.6ms) CREATE TABLE "account_contacts" ("id" serial primary key, "account_id" integer, "contact_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
80
+  (73.3ms) CREATE TABLE "account_opportunities" ("id" serial primary key, "account_id" integer, "opportunity_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
81
+  (109.5ms) CREATE TABLE "accounts" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "website" character varying(64), "toll_free_phone" character varying(32), "phone" character varying(32), "fax" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(64), "background_info" character varying(255), "rating" integer DEFAULT 0 NOT NULL, "category" character varying(32), "subscribed_users" text) 
82
+  (41.5ms) CREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")
83
+  (87.6ms) CREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")
84
+  (89.6ms) CREATE TABLE "activities" ("id" serial primary key, "user_id" integer, "subject_id" integer, "subject_type" character varying(255), "action" character varying(32) DEFAULT 'created', "info" character varying(255) DEFAULT '', "private" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
85
+  (55.9ms) CREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")
86
+  (64.5ms) CREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")
87
+  (89.9ms) CREATE TABLE "addresses" ("id" serial primary key, "street1" character varying(255), "street2" character varying(255), "city" character varying(64), "state" character varying(64), "zipcode" character varying(16), "country" character varying(64), "full_address" character varying(255), "address_type" character varying(16), "addressable_id" integer, "addressable_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp) 
88
+  (55.9ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")
89
+  (115.2ms) CREATE TABLE "avatars" ("id" serial primary key, "user_id" integer, "entity_id" integer, "entity_type" character varying(255), "image_file_size" integer, "image_file_name" character varying(255), "image_content_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
90
+  (98.1ms) CREATE TABLE "campaigns" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "status" character varying(64), "budget" decimal(12,2), "target_leads" integer, "target_conversion" float, "target_revenue" decimal(12,2), "leads_count" integer, "opportunities_count" integer, "revenue" decimal(12,2), "starts_on" date, "ends_on" date, "objectives" text, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
91
+  (72.8ms) CREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")
92
+  (64.3ms) CREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")
93
+  (107.0ms) CREATE TABLE "comments" ("id" serial primary key, "user_id" integer, "commentable_id" integer, "commentable_type" character varying(255), "private" boolean, "title" character varying(255) DEFAULT '', "comment" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL) 
94
+  (64.2ms) CREATE TABLE "contact_aliases" ("id" serial primary key, "contact_id" integer, "destroyed_contact_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
95
+  (56.2ms) CREATE TABLE "contact_opportunities" ("id" serial primary key, "contact_id" integer, "opportunity_id" integer, "role" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
96
+  (124.8ms) CREATE TABLE "contacts" ("id" serial primary key, "user_id" integer, "lead_id" integer, "assigned_to" integer, "reports_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "department" character varying(64), "source" character varying(32), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "fax" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "born_on" date, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text)
97
+  (66.3ms) CREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")
98
+  (55.5ms) CREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")
99
+  (106.2ms) CREATE TABLE "emails" ("id" serial primary key, "imap_message_id" character varying(255) NOT NULL, "user_id" integer, "mediator_id" integer, "mediator_type" character varying(255), "sent_from" character varying(255) NOT NULL, "sent_to" character varying(255) NOT NULL, "cc" character varying(255), "bcc" character varying(255), "subject" character varying(255), "body" text, "header" text, "sent_at" timestamp, "received_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL) 
100
+  (55.9ms) CREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")
101
+  (56.4ms) CREATE TABLE "field_groups" ("id" serial primary key, "name" character varying(64), "label" character varying(128), "position" integer, "hint" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "tag_id" integer, "klass_name" character varying(32)) 
102
+  (131.3ms) CREATE TABLE "fields" ("id" serial primary key, "type" character varying(255), "field_group_id" integer, "position" integer, "name" character varying(64), "label" character varying(128), "hint" character varying(255), "placeholder" character varying(255), "as" character varying(32), "collection" text, "disabled" boolean, "required" boolean, "maxlength" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "pair_id" integer, "settings" text)
103
+  (56.0ms) CREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")
104
+  (55.9ms) CREATE INDEX "index_fields_on_name" ON "fields" ("name")
105
+  (65.4ms) CREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
106
+  (14.8ms) CREATE TABLE "groups_users" ("group_id" integer, "user_id" integer)
107
+  (64.0ms) CREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")
108
+  (55.4ms) CREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")
109
+  (54.9ms) CREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")
110
+  (98.2ms) CREATE TABLE "leads" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "company" character varying(64), "source" character varying(32), "status" character varying(32), "referred_by" character varying(64), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "rating" integer DEFAULT 0 NOT NULL, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text)
111
+  (64.4ms) CREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")
112
+  (64.3ms) CREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")
113
+  (90.3ms) CREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
114
+  (89.7ms) CREATE TABLE "opportunities" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "source" character varying(32), "stage" character varying(32), "probability" integer, "amount" decimal(12,2), "discount" decimal(12,2), "closes_on" date, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
115
+  (49.9ms) CREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")
116
+  (56.2ms) CREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")
117
+  (56.9ms) CREATE TABLE "permissions" ("id" serial primary key, "user_id" integer, "asset_id" integer, "asset_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "group_id" integer) 
118
+  (120.4ms) CREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")
119
+  (66.9ms) CREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")
120
+  (55.7ms) CREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")
121
+  (98.8ms) CREATE TABLE "preferences" ("id" serial primary key, "user_id" integer, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
122
+  (56.0ms) CREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")
123
+  (156.5ms) CREATE TABLE "sessions" ("id" serial primary key, "session_id" character varying(255) NOT NULL, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
124
+  (56.0ms) CREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
125
+  (64.4ms) CREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")
126
+  (90.1ms) CREATE TABLE "settings" ("id" serial primary key, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
127
+  (56.2ms) CREATE INDEX "index_settings_on_name" ON "settings" ("name")
128
+  (65.2ms) CREATE TABLE "taggings" ("id" serial primary key, "tag_id" integer, "taggable_id" integer, "tagger_id" integer, "tagger_type" character varying(255), "taggable_type" character varying(50), "context" character varying(50), "created_at" timestamp)
129
+  (56.4ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
130
+  (64.6ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
131
+  (65.2ms) CREATE TABLE "tags" ("id" serial primary key, "name" character varying(255)) 
132
+  (131.7ms) CREATE TABLE "tasks" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "completed_by" integer, "name" character varying(255) DEFAULT '' NOT NULL, "asset_id" integer, "asset_type" character varying(255), "priority" character varying(32), "category" character varying(32), "bucket" character varying(32), "due_at" timestamp, "completed_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
133
+  (64.6ms) CREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")
134
+  (64.5ms) CREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")
135
+  (114.6ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying(32) DEFAULT '' NOT NULL, "email" character varying(64) DEFAULT '' NOT NULL, "first_name" character varying(32), "last_name" character varying(32), "title" character varying(64), "company" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "aim" character varying(32), "yahoo" character varying(32), "google" character varying(32), "skype" character varying(32), "password_hash" character varying(255) DEFAULT '' NOT NULL, "password_salt" character varying(255) DEFAULT '' NOT NULL, "persistence_token" character varying(255) DEFAULT '' NOT NULL, "perishable_token" character varying(255) DEFAULT '' NOT NULL, "last_request_at" timestamp, "last_login_at" timestamp, "current_login_at" timestamp, "last_login_ip" character varying(255), "current_login_ip" character varying(255), "login_count" integer DEFAULT 0 NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "admin" boolean DEFAULT 'f' NOT NULL, "suspended_at" timestamp, "single_access_token" character varying(255)) 
136
+  (72.8ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
137
+  (55.8ms) CREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")
138
+  (55.7ms) CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")
139
+  (55.1ms) CREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")
140
+  (54.7ms) CREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")
141
+  (98.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying(255) NOT NULL, "item_id" integer NOT NULL, "event" character varying(512) NOT NULL, "whodunnit" character varying(255), "object" text, "created_at" timestamp, "object_changes" text, "related_id" integer, "related_type" character varying(255)) 
142
+  (91.5ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
143
+  (63.5ms) CREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")
144
+  (32.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
145
+  (56.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
146
+  (18.9ms) SELECT version FROM "schema_migrations"
147
+  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312064954')
148
+ Connecting to database specified by database.yml
149
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
150
+  (525.9ms) DROP DATABASE IF EXISTS "ffcrm_endpoint_test"
151
+  (1338.1ms) CREATE DATABASE "ffcrm_endpoint_test" ENCODING = 'unicode'
152
+  (50.1ms) CREATE TABLE "account_aliases" ("id" serial primary key, "account_id" integer, "destroyed_account_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
153
+  (72.4ms) CREATE TABLE "account_contacts" ("id" serial primary key, "account_id" integer, "contact_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
154
+  (56.5ms) CREATE TABLE "account_opportunities" ("id" serial primary key, "account_id" integer, "opportunity_id" integer, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
155
+  (84.0ms) CREATE TABLE "accounts" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "website" character varying(64), "toll_free_phone" character varying(32), "phone" character varying(32), "fax" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(64), "background_info" character varying(255), "rating" integer DEFAULT 0 NOT NULL, "category" character varying(32), "subscribed_users" text) 
156
+  (41.3ms) CREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")
157
+  (63.0ms) CREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")
158
+  (90.0ms) CREATE TABLE "activities" ("id" serial primary key, "user_id" integer, "subject_id" integer, "subject_type" character varying(255), "action" character varying(32) DEFAULT 'created', "info" character varying(255) DEFAULT '', "private" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
159
+  (55.8ms) CREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")
160
+  (105.9ms) CREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")
161
+  (106.5ms) CREATE TABLE "addresses" ("id" serial primary key, "street1" character varying(255), "street2" character varying(255), "city" character varying(64), "state" character varying(64), "zipcode" character varying(16), "country" character varying(64), "full_address" character varying(255), "address_type" character varying(16), "addressable_id" integer, "addressable_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp) 
162
+  (55.8ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")
163
+  (98.3ms) CREATE TABLE "avatars" ("id" serial primary key, "user_id" integer, "entity_id" integer, "entity_type" character varying(255), "image_file_size" integer, "image_file_name" character varying(255), "image_content_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
164
+  (114.3ms) CREATE TABLE "campaigns" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "status" character varying(64), "budget" decimal(12,2), "target_leads" integer, "target_conversion" float, "target_revenue" decimal(12,2), "leads_count" integer, "opportunities_count" integer, "revenue" decimal(12,2), "starts_on" date, "ends_on" date, "objectives" text, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
165
+  (47.4ms) CREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")
166
+  (47.0ms) CREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")
167
+  (98.1ms) CREATE TABLE "comments" ("id" serial primary key, "user_id" integer, "commentable_id" integer, "commentable_type" character varying(255), "private" boolean, "title" character varying(255) DEFAULT '', "comment" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL) 
168
+  (48.0ms) CREATE TABLE "contact_aliases" ("id" serial primary key, "contact_id" integer, "destroyed_contact_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
169
+  (48.2ms) CREATE TABLE "contact_opportunities" ("id" serial primary key, "contact_id" integer, "opportunity_id" integer, "role" character varying(32), "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
170
+  (106.2ms) CREATE TABLE "contacts" ("id" serial primary key, "user_id" integer, "lead_id" integer, "assigned_to" integer, "reports_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "department" character varying(64), "source" character varying(32), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "fax" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "born_on" date, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text)
171
+  (41.5ms) CREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")
172
+  (55.8ms) CREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")
173
+  (98.2ms) CREATE TABLE "emails" ("id" serial primary key, "imap_message_id" character varying(255) NOT NULL, "user_id" integer, "mediator_id" integer, "mediator_type" character varying(255), "sent_from" character varying(255) NOT NULL, "sent_to" character varying(255) NOT NULL, "cc" character varying(255), "bcc" character varying(255), "subject" character varying(255), "body" text, "header" text, "sent_at" timestamp, "received_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "state" character varying(16) DEFAULT 'Expanded' NOT NULL) 
174
+  (47.6ms) CREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")
175
+  (48.2ms) CREATE TABLE "field_groups" ("id" serial primary key, "name" character varying(64), "label" character varying(128), "position" integer, "hint" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "tag_id" integer, "klass_name" character varying(32)) 
176
+  (98.1ms) CREATE TABLE "fields" ("id" serial primary key, "type" character varying(255), "field_group_id" integer, "position" integer, "name" character varying(64), "label" character varying(128), "hint" character varying(255), "placeholder" character varying(255), "as" character varying(32), "collection" text, "disabled" boolean, "required" boolean, "maxlength" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "pair_id" integer, "settings" text)
177
+  (55.9ms) CREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")
178
+  (55.8ms) CREATE INDEX "index_fields_on_name" ON "fields" ("name")
179
+  (48.5ms) CREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
180
+  (15.2ms) CREATE TABLE "groups_users" ("group_id" integer, "user_id" integer)
181
+  (56.4ms) CREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")
182
+  (96.9ms) CREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")
183
+  (46.6ms) CREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")
184
+  (89.5ms) CREATE TABLE "leads" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "first_name" character varying(64) DEFAULT '' NOT NULL, "last_name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "title" character varying(64), "company" character varying(64), "source" character varying(32), "status" character varying(32), "referred_by" character varying(64), "email" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "blog" character varying(128), "linkedin" character varying(128), "facebook" character varying(128), "twitter" character varying(128), "rating" integer DEFAULT 0 NOT NULL, "do_not_call" boolean DEFAULT 'f' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "skype" character varying(128), "subscribed_users" text)
185
+  (47.6ms) CREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")
186
+  (55.8ms) CREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")
187
+  (90.1ms) CREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
188
+  (89.6ms) CREATE TABLE "opportunities" ("id" serial primary key, "user_id" integer, "campaign_id" integer, "assigned_to" integer, "name" character varying(64) DEFAULT '' NOT NULL, "access" character varying(8) DEFAULT 'Public', "source" character varying(32), "stage" character varying(32), "probability" integer, "amount" decimal(12,2), "discount" decimal(12,2), "closes_on" date, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
189
+  (41.4ms) CREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")
190
+  (63.7ms) CREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")
191
+  (56.7ms) CREATE TABLE "permissions" ("id" serial primary key, "user_id" integer, "asset_id" integer, "asset_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "group_id" integer) 
192
+  (47.7ms) CREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")
193
+  (55.1ms) CREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")
194
+  (46.6ms) CREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")
195
+  (89.7ms) CREATE TABLE "preferences" ("id" serial primary key, "user_id" integer, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
196
+  (47.5ms) CREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")
197
+  (107.0ms) CREATE TABLE "sessions" ("id" serial primary key, "session_id" character varying(255) NOT NULL, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
198
+  (63.7ms) CREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
199
+  (55.6ms) CREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")
200
+  (98.5ms) CREATE TABLE "settings" ("id" serial primary key, "name" character varying(32) DEFAULT '' NOT NULL, "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
201
+  (47.6ms) CREATE INDEX "index_settings_on_name" ON "settings" ("name")
202
+  (48.6ms) CREATE TABLE "taggings" ("id" serial primary key, "tag_id" integer, "taggable_id" integer, "tagger_id" integer, "tagger_type" character varying(255), "taggable_type" character varying(50), "context" character varying(50), "created_at" timestamp)
203
+  (64.2ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
204
+  (80.8ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
205
+  (56.6ms) CREATE TABLE "tags" ("id" serial primary key, "name" character varying(255)) 
206
+  (97.9ms) CREATE TABLE "tasks" ("id" serial primary key, "user_id" integer, "assigned_to" integer, "completed_by" integer, "name" character varying(255) DEFAULT '' NOT NULL, "asset_id" integer, "asset_type" character varying(255), "priority" character varying(32), "category" character varying(32), "bucket" character varying(32), "due_at" timestamp, "completed_at" timestamp, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "background_info" character varying(255), "subscribed_users" text)
207
+  (56.0ms) CREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")
208
+  (64.5ms) CREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")
209
+  (90.0ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying(32) DEFAULT '' NOT NULL, "email" character varying(64) DEFAULT '' NOT NULL, "first_name" character varying(32), "last_name" character varying(32), "title" character varying(64), "company" character varying(64), "alt_email" character varying(64), "phone" character varying(32), "mobile" character varying(32), "aim" character varying(32), "yahoo" character varying(32), "google" character varying(32), "skype" character varying(32), "password_hash" character varying(255) DEFAULT '' NOT NULL, "password_salt" character varying(255) DEFAULT '' NOT NULL, "persistence_token" character varying(255) DEFAULT '' NOT NULL, "perishable_token" character varying(255) DEFAULT '' NOT NULL, "last_request_at" timestamp, "last_login_at" timestamp, "current_login_at" timestamp, "last_login_ip" character varying(255), "current_login_ip" character varying(255), "login_count" integer DEFAULT 0 NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "admin" boolean DEFAULT 'f' NOT NULL, "suspended_at" timestamp, "single_access_token" character varying(255)) 
210
+  (64.5ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
211
+  (47.5ms) CREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")
212
+  (55.3ms) CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")
213
+  (46.9ms) CREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")
214
+  (54.7ms) CREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")
215
+  (115.6ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying(255) NOT NULL, "item_id" integer NOT NULL, "event" character varying(512) NOT NULL, "whodunnit" character varying(255), "object" text, "created_at" timestamp, "object_changes" text, "related_id" integer, "related_type" character varying(255)) 
216
+  (58.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
217
+  (64.3ms) CREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")
218
+  (23.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
219
+  (56.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
220
+  (0.3ms) SELECT version FROM "schema_migrations"
221
+  (15.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130312064954')