ffcrm_endpoint 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +77 -0
- data/Rakefile +38 -0
- data/app/controllers/ffcrm_endpoint/endpoints_controller.rb +26 -0
- data/app/views/ffcrm_endpoint/endpoints/consume.html.haml +4 -0
- data/app/views/ffcrm_endpoint/endpoints/consume.js.erb +0 -0
- data/config/routes.rb +5 -0
- data/lib/ffcrm_endpoint/endpoint.rb +78 -0
- data/lib/ffcrm_endpoint/engine.rb +16 -0
- data/lib/ffcrm_endpoint/version.rb +3 -0
- data/lib/ffcrm_endpoint.rb +4 -0
- data/lib/tasks/ffcrm_endpoint_tasks.rake +4 -0
- data/spec/controllers/endpoints_controller_spec.rb +27 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +17 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +457 -0
- data/spec/dummy/log/development.log +221 -0
- data/spec/dummy/log/test.log +374 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/lib/endpoint_spec.rb +34 -0
- data/spec/routing/endpoint_routing_spec.rb +21 -0
- data/spec/spec_helper.rb +17 -0
- 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
|
+
[1m[36m (54.7ms)[0m [1mCREATE TABLE "account_aliases" ("id" serial primary key, "account_id" integer, "destroyed_account_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
5
|
+
[1m[35m (85.8ms)[0m 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
|
+
[1m[36m (68.2ms)[0m [1mCREATE 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) [0m
|
7
|
+
[1m[35m (92.5ms)[0m 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
|
+
[1m[36m (66.3ms)[0m [1mCREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")[0m
|
9
|
+
[1m[35m (54.5ms)[0m CREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")
|
10
|
+
[1m[36m (89.8ms)[0m [1mCREATE 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) [0m
|
11
|
+
[1m[35m (56.2ms)[0m CREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")
|
12
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")[0m
|
13
|
+
[1m[35m (90.1ms)[0m 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
|
+
[1m[36m (95.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")[0m
|
15
|
+
[1m[35m (158.9ms)[0m 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
|
+
[1m[36m (106.4ms)[0m [1mCREATE 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) [0m
|
17
|
+
[1m[35m (64.3ms)[0m CREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")
|
18
|
+
[1m[36m (64.1ms)[0m [1mCREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")[0m
|
19
|
+
[1m[35m (89.9ms)[0m 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
|
+
[1m[36m (65.1ms)[0m [1mCREATE TABLE "contact_aliases" ("id" serial primary key, "contact_id" integer, "destroyed_contact_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
21
|
+
[1m[35m (56.2ms)[0m 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
|
+
[1m[36m (106.7ms)[0m [1mCREATE 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) [0m
|
23
|
+
[1m[35m (84.5ms)[0m CREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")
|
24
|
+
[1m[36m (62.2ms)[0m [1mCREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")[0m
|
25
|
+
[1m[35m (106.2ms)[0m 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
|
+
[1m[36m (55.9ms)[0m [1mCREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")[0m
|
27
|
+
[1m[35m (64.8ms)[0m 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
|
+
[1m[36m (114.8ms)[0m [1mCREATE 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) [0m
|
29
|
+
[1m[35m (56.0ms)[0m CREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")
|
30
|
+
[1m[36m (64.0ms)[0m [1mCREATE INDEX "index_fields_on_name" ON "fields" ("name")[0m
|
31
|
+
[1m[35m (56.5ms)[0m CREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
32
|
+
[1m[36m (15.0ms)[0m [1mCREATE TABLE "groups_users" ("group_id" integer, "user_id" integer) [0m
|
33
|
+
[1m[35m (64.9ms)[0m CREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")
|
34
|
+
[1m[36m (55.4ms)[0m [1mCREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")[0m
|
35
|
+
[1m[35m (63.5ms)[0m CREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")
|
36
|
+
[1m[36m (97.9ms)[0m [1mCREATE 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) [0m
|
37
|
+
[1m[35m (55.9ms)[0m CREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")
|
38
|
+
[1m[36m (55.6ms)[0m [1mCREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")[0m
|
39
|
+
[1m[35m (90.0ms)[0m CREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
40
|
+
[1m[36m (89.4ms)[0m [1mCREATE 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) [0m
|
41
|
+
[1m[35m (49.9ms)[0m CREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")
|
42
|
+
[1m[36m (55.6ms)[0m [1mCREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")[0m
|
43
|
+
[1m[35m (64.9ms)[0m 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
|
+
[1m[36m (56.1ms)[0m [1mCREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")[0m
|
45
|
+
[1m[35m (422.0ms)[0m CREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")
|
46
|
+
[1m[36m (63.2ms)[0m [1mCREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")[0m
|
47
|
+
[1m[35m (98.5ms)[0m 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
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")[0m
|
49
|
+
[1m[35m (106.9ms)[0m 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
|
+
[1m[36m (64.0ms)[0m [1mCREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")[0m
|
51
|
+
[1m[35m (72.7ms)[0m CREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")
|
52
|
+
[1m[36m (106.5ms)[0m [1mCREATE 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) [0m
|
53
|
+
[1m[35m (64.3ms)[0m CREATE INDEX "index_settings_on_name" ON "settings" ("name")
|
54
|
+
[1m[36m (56.6ms)[0m [1mCREATE 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) [0m
|
55
|
+
[1m[35m (64.4ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
56
|
+
[1m[36m (55.7ms)[0m [1mCREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")[0m
|
57
|
+
[1m[35m (64.8ms)[0m CREATE TABLE "tags" ("id" serial primary key, "name" character varying(255))
|
58
|
+
[1m[36m (98.3ms)[0m [1mCREATE 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) [0m
|
59
|
+
[1m[35m (56.0ms)[0m CREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")
|
60
|
+
[1m[36m (55.5ms)[0m [1mCREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")[0m
|
61
|
+
[1m[35m (147.9ms)[0m 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
|
+
[1m[36m (56.0ms)[0m [1mCREATE INDEX "index_users_on_email" ON "users" ("email")[0m
|
63
|
+
[1m[35m (55.3ms)[0m CREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")
|
64
|
+
[1m[36m (55.2ms)[0m [1mCREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")[0m
|
65
|
+
[1m[35m (54.7ms)[0m CREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")
|
66
|
+
[1m[36m (54.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")[0m
|
67
|
+
[1m[35m (122.9ms)[0m 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
|
+
[1m[36m (66.3ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
69
|
+
[1m[35m (55.4ms)[0m CREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")
|
70
|
+
[1m[36m (23.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
71
|
+
[1m[35m (64.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
72
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
73
|
+
[1m[35m (31.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130312064954')
|
74
|
+
Connecting to database specified by database.yml
|
75
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
76
|
+
[1m[35m (2530.5ms)[0m DROP DATABASE IF EXISTS "ffcrm_endpoint_test"
|
77
|
+
[1m[36m (728.5ms)[0m [1mCREATE DATABASE "ffcrm_endpoint_test" ENCODING = 'unicode'[0m
|
78
|
+
[1m[35m (57.8ms)[0m 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
|
+
[1m[36m (64.6ms)[0m [1mCREATE 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) [0m
|
80
|
+
[1m[35m (73.3ms)[0m 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
|
+
[1m[36m (109.5ms)[0m [1mCREATE 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) [0m
|
82
|
+
[1m[35m (41.5ms)[0m CREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")
|
83
|
+
[1m[36m (87.6ms)[0m [1mCREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")[0m
|
84
|
+
[1m[35m (89.6ms)[0m 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
|
+
[1m[36m (55.9ms)[0m [1mCREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")[0m
|
86
|
+
[1m[35m (64.5ms)[0m CREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")
|
87
|
+
[1m[36m (89.9ms)[0m [1mCREATE 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) [0m
|
88
|
+
[1m[35m (55.9ms)[0m CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")
|
89
|
+
[1m[36m (115.2ms)[0m [1mCREATE 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) [0m
|
90
|
+
[1m[35m (98.1ms)[0m 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
|
+
[1m[36m (72.8ms)[0m [1mCREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")[0m
|
92
|
+
[1m[35m (64.3ms)[0m CREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")
|
93
|
+
[1m[36m (107.0ms)[0m [1mCREATE 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) [0m
|
94
|
+
[1m[35m (64.2ms)[0m 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
|
+
[1m[36m (56.2ms)[0m [1mCREATE 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) [0m
|
96
|
+
[1m[35m (124.8ms)[0m 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
|
+
[1m[36m (66.3ms)[0m [1mCREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")[0m
|
98
|
+
[1m[35m (55.5ms)[0m CREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")
|
99
|
+
[1m[36m (106.2ms)[0m [1mCREATE 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) [0m
|
100
|
+
[1m[35m (55.9ms)[0m CREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")
|
101
|
+
[1m[36m (56.4ms)[0m [1mCREATE 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)) [0m
|
102
|
+
[1m[35m (131.3ms)[0m 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
|
+
[1m[36m (56.0ms)[0m [1mCREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")[0m
|
104
|
+
[1m[35m (55.9ms)[0m CREATE INDEX "index_fields_on_name" ON "fields" ("name")
|
105
|
+
[1m[36m (65.4ms)[0m [1mCREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
106
|
+
[1m[35m (14.8ms)[0m CREATE TABLE "groups_users" ("group_id" integer, "user_id" integer)
|
107
|
+
[1m[36m (64.0ms)[0m [1mCREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")[0m
|
108
|
+
[1m[35m (55.4ms)[0m CREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")
|
109
|
+
[1m[36m (54.9ms)[0m [1mCREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")[0m
|
110
|
+
[1m[35m (98.2ms)[0m 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
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")[0m
|
112
|
+
[1m[35m (64.3ms)[0m CREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")
|
113
|
+
[1m[36m (90.3ms)[0m [1mCREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
114
|
+
[1m[35m (89.7ms)[0m 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
|
+
[1m[36m (49.9ms)[0m [1mCREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")[0m
|
116
|
+
[1m[35m (56.2ms)[0m CREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")
|
117
|
+
[1m[36m (56.9ms)[0m [1mCREATE 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) [0m
|
118
|
+
[1m[35m (120.4ms)[0m CREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")
|
119
|
+
[1m[36m (66.9ms)[0m [1mCREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")[0m
|
120
|
+
[1m[35m (55.7ms)[0m CREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")
|
121
|
+
[1m[36m (98.8ms)[0m [1mCREATE 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) [0m
|
122
|
+
[1m[35m (56.0ms)[0m CREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")
|
123
|
+
[1m[36m (156.5ms)[0m [1mCREATE 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) [0m
|
124
|
+
[1m[35m (56.0ms)[0m CREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
|
125
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")[0m
|
126
|
+
[1m[35m (90.1ms)[0m 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
|
+
[1m[36m (56.2ms)[0m [1mCREATE INDEX "index_settings_on_name" ON "settings" ("name")[0m
|
128
|
+
[1m[35m (65.2ms)[0m 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
|
+
[1m[36m (56.4ms)[0m [1mCREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")[0m
|
130
|
+
[1m[35m (64.6ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
131
|
+
[1m[36m (65.2ms)[0m [1mCREATE TABLE "tags" ("id" serial primary key, "name" character varying(255)) [0m
|
132
|
+
[1m[35m (131.7ms)[0m 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
|
+
[1m[36m (64.6ms)[0m [1mCREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")[0m
|
134
|
+
[1m[35m (64.5ms)[0m CREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")
|
135
|
+
[1m[36m (114.6ms)[0m [1mCREATE 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)) [0m
|
136
|
+
[1m[35m (72.8ms)[0m CREATE INDEX "index_users_on_email" ON "users" ("email")
|
137
|
+
[1m[36m (55.8ms)[0m [1mCREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")[0m
|
138
|
+
[1m[35m (55.7ms)[0m CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")
|
139
|
+
[1m[36m (55.1ms)[0m [1mCREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")[0m
|
140
|
+
[1m[35m (54.7ms)[0m CREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")
|
141
|
+
[1m[36m (98.3ms)[0m [1mCREATE 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)) [0m
|
142
|
+
[1m[35m (91.5ms)[0m CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
|
143
|
+
[1m[36m (63.5ms)[0m [1mCREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")[0m
|
144
|
+
[1m[35m (32.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
145
|
+
[1m[36m (56.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
146
|
+
[1m[35m (18.9ms)[0m SELECT version FROM "schema_migrations"
|
147
|
+
[1m[36m (12.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130312064954')[0m
|
148
|
+
Connecting to database specified by database.yml
|
149
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
150
|
+
[1m[35m (525.9ms)[0m DROP DATABASE IF EXISTS "ffcrm_endpoint_test"
|
151
|
+
[1m[36m (1338.1ms)[0m [1mCREATE DATABASE "ffcrm_endpoint_test" ENCODING = 'unicode'[0m
|
152
|
+
[1m[35m (50.1ms)[0m 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
|
+
[1m[36m (72.4ms)[0m [1mCREATE 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) [0m
|
154
|
+
[1m[35m (56.5ms)[0m 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
|
+
[1m[36m (84.0ms)[0m [1mCREATE 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) [0m
|
156
|
+
[1m[35m (41.3ms)[0m CREATE INDEX "index_accounts_on_assigned_to" ON "accounts" ("assigned_to")
|
157
|
+
[1m[36m (63.0ms)[0m [1mCREATE UNIQUE INDEX "index_accounts_on_user_id_and_name_and_deleted_at" ON "accounts" ("user_id", "name", "deleted_at")[0m
|
158
|
+
[1m[35m (90.0ms)[0m 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
|
+
[1m[36m (55.8ms)[0m [1mCREATE INDEX "index_activities_on_created_at" ON "activities" ("created_at")[0m
|
160
|
+
[1m[35m (105.9ms)[0m CREATE INDEX "index_activities_on_user_id" ON "activities" ("user_id")
|
161
|
+
[1m[36m (106.5ms)[0m [1mCREATE 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) [0m
|
162
|
+
[1m[35m (55.8ms)[0m CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")
|
163
|
+
[1m[36m (98.3ms)[0m [1mCREATE 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) [0m
|
164
|
+
[1m[35m (114.3ms)[0m 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
|
+
[1m[36m (47.4ms)[0m [1mCREATE INDEX "index_campaigns_on_assigned_to" ON "campaigns" ("assigned_to")[0m
|
166
|
+
[1m[35m (47.0ms)[0m CREATE UNIQUE INDEX "index_campaigns_on_user_id_and_name_and_deleted_at" ON "campaigns" ("user_id", "name", "deleted_at")
|
167
|
+
[1m[36m (98.1ms)[0m [1mCREATE 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) [0m
|
168
|
+
[1m[35m (48.0ms)[0m 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
|
+
[1m[36m (48.2ms)[0m [1mCREATE 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) [0m
|
170
|
+
[1m[35m (106.2ms)[0m 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
|
+
[1m[36m (41.5ms)[0m [1mCREATE INDEX "index_contacts_on_assigned_to" ON "contacts" ("assigned_to")[0m
|
172
|
+
[1m[35m (55.8ms)[0m CREATE UNIQUE INDEX "id_last_name_deleted" ON "contacts" ("user_id", "last_name", "deleted_at")
|
173
|
+
[1m[36m (98.2ms)[0m [1mCREATE 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) [0m
|
174
|
+
[1m[35m (47.6ms)[0m CREATE INDEX "index_emails_on_mediator_id_and_mediator_type" ON "emails" ("mediator_id", "mediator_type")
|
175
|
+
[1m[36m (48.2ms)[0m [1mCREATE 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)) [0m
|
176
|
+
[1m[35m (98.1ms)[0m 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
|
+
[1m[36m (55.9ms)[0m [1mCREATE INDEX "index_fields_on_field_group_id" ON "fields" ("field_group_id")[0m
|
178
|
+
[1m[35m (55.8ms)[0m CREATE INDEX "index_fields_on_name" ON "fields" ("name")
|
179
|
+
[1m[36m (48.5ms)[0m [1mCREATE TABLE "groups" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
180
|
+
[1m[35m (15.2ms)[0m CREATE TABLE "groups_users" ("group_id" integer, "user_id" integer)
|
181
|
+
[1m[36m (56.4ms)[0m [1mCREATE INDEX "index_groups_users_on_group_id_and_user_id" ON "groups_users" ("group_id", "user_id")[0m
|
182
|
+
[1m[35m (96.9ms)[0m CREATE INDEX "index_groups_users_on_group_id" ON "groups_users" ("group_id")
|
183
|
+
[1m[36m (46.6ms)[0m [1mCREATE INDEX "index_groups_users_on_user_id" ON "groups_users" ("user_id")[0m
|
184
|
+
[1m[35m (89.5ms)[0m 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
|
+
[1m[36m (47.6ms)[0m [1mCREATE INDEX "index_leads_on_assigned_to" ON "leads" ("assigned_to")[0m
|
186
|
+
[1m[35m (55.8ms)[0m CREATE UNIQUE INDEX "index_leads_on_user_id_and_last_name_and_deleted_at" ON "leads" ("user_id", "last_name", "deleted_at")
|
187
|
+
[1m[36m (90.1ms)[0m [1mCREATE TABLE "lists" ("id" serial primary key, "name" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
188
|
+
[1m[35m (89.6ms)[0m 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
|
+
[1m[36m (41.4ms)[0m [1mCREATE INDEX "index_opportunities_on_assigned_to" ON "opportunities" ("assigned_to")[0m
|
190
|
+
[1m[35m (63.7ms)[0m CREATE UNIQUE INDEX "id_name_deleted" ON "opportunities" ("user_id", "name", "deleted_at")
|
191
|
+
[1m[36m (56.7ms)[0m [1mCREATE 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) [0m
|
192
|
+
[1m[35m (47.7ms)[0m CREATE INDEX "index_permissions_on_asset_id_and_asset_type" ON "permissions" ("asset_id", "asset_type")
|
193
|
+
[1m[36m (55.1ms)[0m [1mCREATE INDEX "index_permissions_on_group_id" ON "permissions" ("group_id")[0m
|
194
|
+
[1m[35m (46.6ms)[0m CREATE INDEX "index_permissions_on_user_id" ON "permissions" ("user_id")
|
195
|
+
[1m[36m (89.7ms)[0m [1mCREATE 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) [0m
|
196
|
+
[1m[35m (47.5ms)[0m CREATE INDEX "index_preferences_on_user_id_and_name" ON "preferences" ("user_id", "name")
|
197
|
+
[1m[36m (107.0ms)[0m [1mCREATE 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) [0m
|
198
|
+
[1m[35m (63.7ms)[0m CREATE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
|
199
|
+
[1m[36m (55.6ms)[0m [1mCREATE INDEX "index_sessions_on_updated_at" ON "sessions" ("updated_at")[0m
|
200
|
+
[1m[35m (98.5ms)[0m 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
|
+
[1m[36m (47.6ms)[0m [1mCREATE INDEX "index_settings_on_name" ON "settings" ("name")[0m
|
202
|
+
[1m[35m (48.6ms)[0m 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
|
+
[1m[36m (64.2ms)[0m [1mCREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")[0m
|
204
|
+
[1m[35m (80.8ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
205
|
+
[1m[36m (56.6ms)[0m [1mCREATE TABLE "tags" ("id" serial primary key, "name" character varying(255)) [0m
|
206
|
+
[1m[35m (97.9ms)[0m 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
|
+
[1m[36m (56.0ms)[0m [1mCREATE INDEX "index_tasks_on_assigned_to" ON "tasks" ("assigned_to")[0m
|
208
|
+
[1m[35m (64.5ms)[0m CREATE UNIQUE INDEX "index_tasks_on_user_id_and_name_and_deleted_at" ON "tasks" ("user_id", "name", "deleted_at")
|
209
|
+
[1m[36m (90.0ms)[0m [1mCREATE 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)) [0m
|
210
|
+
[1m[35m (64.5ms)[0m CREATE INDEX "index_users_on_email" ON "users" ("email")
|
211
|
+
[1m[36m (47.5ms)[0m [1mCREATE INDEX "index_users_on_last_request_at" ON "users" ("last_request_at")[0m
|
212
|
+
[1m[35m (55.3ms)[0m CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")
|
213
|
+
[1m[36m (46.9ms)[0m [1mCREATE INDEX "index_users_on_remember_token" ON "users" ("persistence_token")[0m
|
214
|
+
[1m[35m (54.7ms)[0m CREATE UNIQUE INDEX "index_users_on_username_and_deleted_at" ON "users" ("username", "deleted_at")
|
215
|
+
[1m[36m (115.6ms)[0m [1mCREATE 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)) [0m
|
216
|
+
[1m[35m (58.1ms)[0m CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
|
217
|
+
[1m[36m (64.3ms)[0m [1mCREATE INDEX "index_versions_on_whodunnit" ON "versions" ("whodunnit")[0m
|
218
|
+
[1m[35m (23.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
219
|
+
[1m[36m (56.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
220
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
221
|
+
[1m[36m (15.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130312064954')[0m
|