starburst 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df6655444e73fcf67a8b0e4b5d73690ab2b6114d
4
- data.tar.gz: bf1ecad20bdca6b4f743d731be73a4bd46e650f6
3
+ metadata.gz: c8848f7b863b49d0bdb45318521ad8826d17bf95
4
+ data.tar.gz: 5a1f1012f03baa30dbe294016569ddbec351c327
5
5
  SHA512:
6
- metadata.gz: c118eff036760139ae7ae6f13d171daeb4e7fb8cd873f0f570ac504ecf16590e569ea71f9ba42128bee811beb680442333f7ce75a4ef15f6a5197e30a0d30571
7
- data.tar.gz: 7545e6188072abbcf627b74156ede2e118bde57c27431de25cbf7979bbdd38032f7d9fba99a87910c2642ac2f28801b666302e2ebd3fb645236d697644ad88ce
6
+ metadata.gz: 57dee08436c7dcbc767f8bc251453d8aadf3878aeace436ef2a4140e365562fdd883354850b2438aff022af3dcf5156ed787d74d7389095e576a8ceb6583b41c
7
+ data.tar.gz: ebecb38b3b916972f1aed116ec1f261d48859105eac170bb5dff1c71037973f7a35e37f04509f8afa9562ee7a4eafabc11a1b94884c04989c7e3dfd191d227c7
@@ -3,7 +3,7 @@ module Starburst
3
3
  def mark_as_read
4
4
  announcement = Announcement.find(params[:id].to_i)
5
5
  if respond_to?(Starburst.current_user_method) && send(Starburst.current_user_method) && announcement
6
- if AnnouncementView.first_or_create(:user => send(Starburst.current_user_method), :announcement => announcement)
6
+ if AnnouncementView.where(user: send(Starburst.current_user_method), announcement: announcement).first_or_create(user: send(Starburst.current_user_method), announcement: announcement)
7
7
  render :json => :ok
8
8
  else
9
9
  render json: nil, :status => :unprocessable_entity
@@ -1,3 +1,3 @@
1
1
  module Starburst
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -6,14 +6,19 @@ module Starburst
6
6
 
7
7
  routes { Starburst::Engine.routes } # http://pivotallabs.com/writing-rails-engine-rspec-controller-tests/
8
8
 
9
- it "marks an announcement as read" do
9
+ it "marks an announcement as read (twice)" do
10
10
  @current_user = mock_model(User, :id => 10)
11
11
  controller.stub(:current_user).and_return(@current_user)
12
12
  announcement = FactoryGirl.create(:announcement)
13
+ announcement2 = FactoryGirl.create(:announcement)
13
14
  post :mark_as_read, :id => announcement.id
14
15
  expect(response.status).to eq 200
15
16
  expect(AnnouncementView.last.user_id).to eq 10
16
17
  expect(AnnouncementView.all.length).to eq 1
18
+ post :mark_as_read, :id => announcement2.id
19
+ expect(response.status).to eq 200
20
+ expect(AnnouncementView.last.user_id).to eq 10
21
+ expect(AnnouncementView.all.length).to eq 2
17
22
  end
18
23
 
19
24
  it "does not mark an announcement as read if no one is logged in" do
@@ -38461,3 +38461,895 @@ Processing by PagesController#home as HTML
38461
38461
  Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (0.3ms)
38462
38462
  Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
38463
38463
   (0.4ms) rollback transaction
38464
+  (4.7ms) begin transaction
38465
+  (0.1ms) SAVEPOINT active_record_1
38466
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.637127"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.637127"]]
38467
+  (0.2ms) RELEASE SAVEPOINT active_record_1
38468
+  (0.1ms) SAVEPOINT active_record_1
38469
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.648726"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.648726"]]
38470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38471
+  (0.1ms) SAVEPOINT active_record_1
38472
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38473
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.722758"], ["updated_at", "2014-12-21 22:41:18.722758"], ["user_id", 1]]
38474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38475
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38476
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38477
+  (0.5ms) rollback transaction
38478
+  (0.1ms) begin transaction
38479
+  (0.0ms) SAVEPOINT active_record_1
38480
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.736750"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.736750"]]
38481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38482
+  (0.0ms) SAVEPOINT active_record_1
38483
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.738678"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.738678"]]
38484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38485
+  (0.1ms) SAVEPOINT active_record_1
38486
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.740121"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.740121"]]
38487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38488
+  (0.1ms) SAVEPOINT active_record_1
38489
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38490
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.743463"], ["updated_at", "2014-12-21 22:41:18.743463"], ["user_id", 1]]
38491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38492
+  (0.0ms) SAVEPOINT active_record_1
38493
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
38494
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2014-12-21 22:41:18.746141"], ["updated_at", "2014-12-21 22:41:18.746141"], ["user_id", 1]]
38495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38496
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38497
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
38498
+  (0.5ms) rollback transaction
38499
+  (0.1ms) begin transaction
38500
+  (0.0ms) SAVEPOINT active_record_1
38501
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.749987"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.749987"]]
38502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38503
+  (0.0ms) SAVEPOINT active_record_1
38504
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.751281"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.751281"]]
38505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38506
+  (0.0ms) SAVEPOINT active_record_1
38507
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.752459"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.752459"]]
38508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38509
+  (0.0ms) SAVEPOINT active_record_1
38510
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38511
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.754631"], ["updated_at", "2014-12-21 22:41:18.754631"], ["user_id", 1]]
38512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38513
+  (0.0ms) SAVEPOINT active_record_1
38514
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38515
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.756811"], ["updated_at", "2014-12-21 22:41:18.756811"], ["user_id", 2]]
38516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38517
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38518
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38519
+  (0.7ms) rollback transaction
38520
+  (0.2ms) begin transaction
38521
+  (0.1ms) SAVEPOINT active_record_1
38522
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.765363"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.765363"]]
38523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38524
+  (0.0ms) SAVEPOINT active_record_1
38525
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.767080"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.767080"]]
38526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38527
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38528
+ Parameters: {"id"=>"1"}
38529
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
38530
+ Starburst::AnnouncementView Load (0.4ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
38531
+  (0.1ms) SAVEPOINT active_record_1
38532
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38533
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.778716"], ["updated_at", "2014-12-21 22:41:18.778716"], ["user_id", 10]]
38534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38535
+ Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.9ms)
38536
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
38537
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38538
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38539
+ Parameters: {"id"=>"2"}
38540
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 2]]
38541
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
38542
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms)
38543
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
38544
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38545
+  (0.6ms) rollback transaction
38546
+  (0.1ms) begin transaction
38547
+  (0.1ms) SAVEPOINT active_record_1
38548
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:41:18.791015"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.791015"]]
38549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38550
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38551
+ Parameters: {"id"=>"1"}
38552
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
38553
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
38554
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38555
+  (0.4ms) rollback transaction
38556
+  (0.1ms) begin transaction
38557
+  (0.1ms) rollback transaction
38558
+  (0.0ms) begin transaction
38559
+  (0.0ms) rollback transaction
38560
+  (0.1ms) begin transaction
38561
+  (0.0ms) SAVEPOINT active_record_1
38562
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.801137"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.801137"]]
38563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38564
+  (0.0ms) SAVEPOINT active_record_1
38565
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:41:18.803037"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.803037"]]
38566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38567
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:41:18 -0500
38568
+ Processing by PagesController#home as HTML
38569
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38570
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38571
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:41:18.835043' OR start_delivering_at IS NULL)
38572
+ AND (stop_delivering_at > '2014-12-21 22:41:18.835045' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38573
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (4.2ms)
38574
+ Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.2ms)
38575
+  (0.7ms) rollback transaction
38576
+  (0.1ms) begin transaction
38577
+  (0.1ms) SAVEPOINT active_record_1
38578
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:41:18.852790"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.852790"]]
38579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38580
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:41:18 -0500
38581
+ Processing by PagesController#home as HTML
38582
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (0.3ms)
38583
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
38584
+  (0.4ms) rollback transaction
38585
+  (0.1ms) begin transaction
38586
+  (0.1ms) SAVEPOINT active_record_1
38587
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.860523"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.860523"]]
38588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38589
+  (0.1ms) SAVEPOINT active_record_1
38590
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:41:18.862910"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.862910"]]
38591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38592
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:41:18 -0500
38593
+ Processing by PagesController#home as HTML
38594
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38595
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38596
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:41:18.866831' OR start_delivering_at IS NULL)
38597
+ AND (stop_delivering_at > '2014-12-21 22:41:18.866833' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38598
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (2.2ms)
38599
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
38600
+  (0.1ms) SAVEPOINT active_record_1
38601
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38602
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.920404"], ["updated_at", "2014-12-21 22:41:18.920404"], ["user_id", 1]]
38603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38604
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:41:18 -0500
38605
+ Processing by PagesController#home as HTML
38606
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38607
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38608
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:41:18.923885' OR start_delivering_at IS NULL)
38609
+ AND (stop_delivering_at > '2014-12-21 22:41:18.923887' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38610
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (1.7ms)
38611
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
38612
+  (0.7ms) rollback transaction
38613
+  (0.1ms) begin transaction
38614
+  (0.0ms) SAVEPOINT active_record_1
38615
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.929216"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n :operator: =\n"], ["updated_at", "2014-12-21 22:41:18.929216"]]
38616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38617
+  (0.3ms) rollback transaction
38618
+  (0.1ms) begin transaction
38619
+  (0.1ms) SAVEPOINT active_record_1
38620
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.933078"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n"], ["updated_at", "2014-12-21 22:41:18.933078"]]
38621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38622
+  (0.0ms) SAVEPOINT active_record_1
38623
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.935344"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.935344"]]
38624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38625
+  (0.0ms) SAVEPOINT active_record_1
38626
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.936876"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:41:18.936876"]]
38627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38628
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38629
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38630
+  (0.6ms) rollback transaction
38631
+  (0.1ms) begin transaction
38632
+  (0.1ms) SAVEPOINT active_record_1
38633
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.941144"], ["limit_to_users", "---\n- :field: free?\n :value: true\n"], ["updated_at", "2014-12-21 22:41:18.941144"]]
38634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38635
+  (0.1ms) SAVEPOINT active_record_1
38636
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.944437"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.944437"]]
38637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38638
+  (0.1ms) SAVEPOINT active_record_1
38639
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.946373"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:41:18.946373"]]
38640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38641
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38642
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38643
+  (0.6ms) rollback transaction
38644
+  (0.1ms) begin transaction
38645
+  (0.1ms) SAVEPOINT active_record_1
38646
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
38647
+  (0.0ms) rollback transaction
38648
+  (0.1ms) begin transaction
38649
+  (0.0ms) SAVEPOINT active_record_1
38650
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:41:18.954073"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:41:18.954073"]]
38651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38652
+  (0.4ms) rollback transaction
38653
+  (0.1ms) begin transaction
38654
+  (0.0ms) SAVEPOINT active_record_1
38655
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:41:18.957011"], ["limit_to_users", nil], ["title", "Test title"], ["updated_at", "2014-12-21 22:41:18.957011"]]
38656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38657
+  (0.4ms) rollback transaction
38658
+  (0.1ms) begin transaction
38659
+  (0.0ms) SAVEPOINT active_record_1
38660
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.960292"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:41:18.959676"], ["stop_delivering_at", "2014-12-21 22:41:18.959677"], ["updated_at", "2014-12-21 22:41:18.960292"]]
38661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38662
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.961481' OR start_delivering_at IS NULL)
38663
+ AND (stop_delivering_at > '2014-12-21 22:41:18.961483' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38664
+  (0.3ms) rollback transaction
38665
+  (0.1ms) begin transaction
38666
+  (0.1ms) SAVEPOINT active_record_1
38667
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.964631"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:41:18.963267"], ["stop_delivering_at", "2014-12-22 22:41:18.963268"], ["updated_at", "2014-12-21 22:41:18.964631"]]
38668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38669
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.966012' OR start_delivering_at IS NULL)
38670
+ AND (stop_delivering_at > '2014-12-21 22:41:18.966017' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38671
+  (0.4ms) rollback transaction
38672
+  (0.1ms) begin transaction
38673
+  (0.1ms) SAVEPOINT active_record_1
38674
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.969033"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:41:18.968212"], ["updated_at", "2014-12-21 22:41:18.969033"]]
38675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38676
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.970493' OR start_delivering_at IS NULL)
38677
+ AND (stop_delivering_at > '2014-12-21 22:41:18.970495' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38678
+  (0.3ms) rollback transaction
38679
+  (0.1ms) begin transaction
38680
+  (0.1ms) SAVEPOINT active_record_1
38681
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.973274"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-22 22:41:18.972545"], ["updated_at", "2014-12-21 22:41:18.973274"]]
38682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38683
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.974545' OR start_delivering_at IS NULL)
38684
+ AND (stop_delivering_at > '2014-12-21 22:41:18.974547' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38685
+  (0.5ms) rollback transaction
38686
+  (0.1ms) begin transaction
38687
+  (0.1ms) SAVEPOINT active_record_1
38688
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.978106"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-22 22:41:18.977306"], ["updated_at", "2014-12-21 22:41:18.978106"]]
38689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38690
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.979754' OR start_delivering_at IS NULL)
38691
+ AND (stop_delivering_at > '2014-12-21 22:41:18.979756' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38692
+  (0.4ms) rollback transaction
38693
+  (0.1ms) begin transaction
38694
+  (0.1ms) SAVEPOINT active_record_1
38695
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.982505"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-20 22:41:18.981688"], ["updated_at", "2014-12-21 22:41:18.982505"]]
38696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38697
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:41:18.984165' OR start_delivering_at IS NULL)
38698
+ AND (stop_delivering_at > '2014-12-21 22:41:18.984167' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38699
+  (0.3ms) rollback transaction
38700
+  (0.1ms) begin transaction
38701
+  (0.1ms) SAVEPOINT active_record_1
38702
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.987131"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:41:18.986312"], ["updated_at", "2014-12-21 22:41:18.987131"]]
38703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38704
+  (0.0ms) SAVEPOINT active_record_1
38705
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.988565"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:41:18.988272"], ["updated_at", "2014-12-21 22:41:18.988565"]]
38706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38707
+  (0.0ms) SAVEPOINT active_record_1
38708
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:18.990018"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:18.990018"]]
38709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38710
+  (0.1ms) SAVEPOINT active_record_1
38711
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38712
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:18.993389"], ["updated_at", "2014-12-21 22:41:18.993389"], ["user_id", 1]]
38713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38714
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38715
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38716
+ starburst_announcement_views.user_id = 1 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
38717
+  (0.6ms) rollback transaction
38718
+  (0.1ms) begin transaction
38719
+  (0.0ms) SAVEPOINT active_record_1
38720
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.997279"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:41:18.996530"], ["updated_at", "2014-12-21 22:41:18.997279"]]
38721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38722
+  (0.0ms) SAVEPOINT active_record_1
38723
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:18.998618"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:41:18.998353"], ["updated_at", "2014-12-21 22:41:18.998618"]]
38724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38725
+  (0.0ms) SAVEPOINT active_record_1
38726
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:19.000016"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:19.000016"]]
38727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38728
+  (0.0ms) SAVEPOINT active_record_1
38729
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:19.000947"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:19.000947"]]
38730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38731
+  (0.0ms) SAVEPOINT active_record_1
38732
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38733
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:19.002613"], ["updated_at", "2014-12-21 22:41:19.002613"], ["user_id", 1]]
38734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38735
+ Starburst::Announcement Load (0.3ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38736
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38737
+ starburst_announcement_views.user_id = 2 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
38738
+  (0.7ms) rollback transaction
38739
+  (0.1ms) begin transaction
38740
+  (0.1ms) SAVEPOINT active_record_1
38741
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:19.008908"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:41:19.008011"], ["updated_at", "2014-12-21 22:41:19.008908"]]
38742
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38743
+  (0.1ms) SAVEPOINT active_record_1
38744
+ SQL (0.5ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:41:19.010980"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:41:19.010409"], ["updated_at", "2014-12-21 22:41:19.010980"]]
38745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38746
+  (0.1ms) SAVEPOINT active_record_1
38747
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:41:19.013184"], ["subscription", ""], ["updated_at", "2014-12-21 22:41:19.013184"]]
38748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38749
+  (0.1ms) SAVEPOINT active_record_1
38750
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38751
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:41:19.016439"], ["updated_at", "2014-12-21 22:41:19.016439"], ["user_id", 1]]
38752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38753
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38754
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38755
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:41:19.017627' OR start_delivering_at IS NULL)
38756
+ AND (stop_delivering_at > '2014-12-21 22:41:19.017630' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38757
+  (0.6ms) rollback transaction
38758
+  (0.3ms) begin transaction
38759
+  (0.0ms) SAVEPOINT active_record_1
38760
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:10.898033"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.898033"]]
38761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38762
+  (0.0ms) SAVEPOINT active_record_1
38763
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:10.901986"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.901986"]]
38764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38765
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38766
+ Parameters: {"id"=>"1"}
38767
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
38768
+  (0.0ms) SAVEPOINT active_record_1
38769
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38770
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:10.922646"], ["updated_at", "2014-12-21 22:42:10.922646"], ["user_id", 10]]
38771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38772
+ Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 0.8ms)
38773
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
38774
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38775
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38776
+ Parameters: {"id"=>"2"}
38777
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 2]]
38778
+  (0.0ms) SAVEPOINT active_record_1
38779
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
38780
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2014-12-21 22:42:10.929893"], ["updated_at", "2014-12-21 22:42:10.929893"], ["user_id", 10]]
38781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38782
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)
38783
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
38784
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38785
+  (1.4ms) rollback transaction
38786
+  (0.1ms) begin transaction
38787
+  (0.1ms) SAVEPOINT active_record_1
38788
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:10.936377"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.936377"]]
38789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38790
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
38791
+ Parameters: {"id"=>"1"}
38792
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
38793
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
38794
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
38795
+  (0.5ms) rollback transaction
38796
+  (0.1ms) begin transaction
38797
+  (0.1ms) rollback transaction
38798
+  (0.1ms) begin transaction
38799
+  (0.1ms) SAVEPOINT active_record_1
38800
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:10.949208"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:10.949208"]]
38801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38802
+  (0.0ms) SAVEPOINT active_record_1
38803
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:42:10.951164"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.951164"]]
38804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38805
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:42:10 -0500
38806
+ Processing by PagesController#home as HTML
38807
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38808
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38809
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:42:10.972341' OR start_delivering_at IS NULL)
38810
+ AND (stop_delivering_at > '2014-12-21 22:42:10.972343' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38811
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (4.1ms)
38812
+ Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.2ms)
38813
+  (0.6ms) rollback transaction
38814
+  (0.1ms) begin transaction
38815
+  (0.1ms) SAVEPOINT active_record_1
38816
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:42:10.985167"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.985167"]]
38817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38818
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:42:10 -0500
38819
+ Processing by PagesController#home as HTML
38820
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (0.3ms)
38821
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
38822
+  (0.5ms) rollback transaction
38823
+  (0.1ms) begin transaction
38824
+  (0.1ms) rollback transaction
38825
+  (0.1ms) begin transaction
38826
+  (0.0ms) SAVEPOINT active_record_1
38827
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:10.995245"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:10.995245"]]
38828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38829
+  (0.0ms) SAVEPOINT active_record_1
38830
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:42:10.997151"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:10.997151"]]
38831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38832
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:42:10 -0500
38833
+ Processing by PagesController#home as HTML
38834
+ Starburst::Announcement Load (0.3ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38835
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38836
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:42:11.001248' OR start_delivering_at IS NULL)
38837
+ AND (stop_delivering_at > '2014-12-21 22:42:11.001253' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38838
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (3.5ms)
38839
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms)
38840
+  (0.1ms) SAVEPOINT active_record_1
38841
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38842
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.007982"], ["updated_at", "2014-12-21 22:42:11.007982"], ["user_id", 1]]
38843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38844
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:42:11 -0500
38845
+ Processing by PagesController#home as HTML
38846
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
38847
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
38848
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:42:11.011644' OR start_delivering_at IS NULL)
38849
+ AND (stop_delivering_at > '2014-12-21 22:42:11.011647' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
38850
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (1.5ms)
38851
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)
38852
+  (0.7ms) rollback transaction
38853
+  (0.1ms) begin transaction
38854
+  (0.1ms) SAVEPOINT active_record_1
38855
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.017409"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.017409"]]
38856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38857
+  (0.0ms) SAVEPOINT active_record_1
38858
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:11.019496"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:11.019496"]]
38859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38860
+  (0.1ms) SAVEPOINT active_record_1
38861
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38862
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.022351"], ["updated_at", "2014-12-21 22:42:11.022351"], ["user_id", 1]]
38863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38864
+ Starburst::AnnouncementView Exists (0.4ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38865
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38866
+  (0.6ms) rollback transaction
38867
+  (0.1ms) begin transaction
38868
+  (0.0ms) SAVEPOINT active_record_1
38869
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.079188"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.079188"]]
38870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38871
+  (0.0ms) SAVEPOINT active_record_1
38872
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:11.080758"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:11.080758"]]
38873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38874
+  (0.0ms) SAVEPOINT active_record_1
38875
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:11.082001"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:11.082001"]]
38876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38877
+  (0.2ms) SAVEPOINT active_record_1
38878
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38879
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.086750"], ["updated_at", "2014-12-21 22:42:11.086750"], ["user_id", 1]]
38880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38881
+  (0.1ms) SAVEPOINT active_record_1
38882
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
38883
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2014-12-21 22:42:11.090894"], ["updated_at", "2014-12-21 22:42:11.090894"], ["user_id", 1]]
38884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38885
+ Starburst::AnnouncementView Exists (0.2ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38886
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
38887
+  (0.6ms) rollback transaction
38888
+  (0.1ms) begin transaction
38889
+  (0.1ms) SAVEPOINT active_record_1
38890
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.097488"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.097488"]]
38891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38892
+  (0.1ms) SAVEPOINT active_record_1
38893
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.100061"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.100061"]]
38894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38895
+  (0.1ms) SAVEPOINT active_record_1
38896
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:42:11.102436"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:11.102436"]]
38897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38898
+  (0.1ms) SAVEPOINT active_record_1
38899
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38900
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.107008"], ["updated_at", "2014-12-21 22:42:11.107008"], ["user_id", 1]]
38901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38902
+  (0.1ms) SAVEPOINT active_record_1
38903
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38904
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.111324"], ["updated_at", "2014-12-21 22:42:11.111324"], ["user_id", 2]]
38905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38906
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38907
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
38908
+  (0.6ms) rollback transaction
38909
+  (0.1ms) begin transaction
38910
+  (0.1ms) SAVEPOINT active_record_1
38911
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
38912
+  (0.1ms) rollback transaction
38913
+  (0.1ms) begin transaction
38914
+  (0.1ms) SAVEPOINT active_record_1
38915
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:42:11.124521"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:42:11.124521"]]
38916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38917
+  (0.4ms) rollback transaction
38918
+  (0.1ms) begin transaction
38919
+  (0.1ms) SAVEPOINT active_record_1
38920
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:42:11.130827"], ["limit_to_users", nil], ["title", "Test title"], ["updated_at", "2014-12-21 22:42:11.130827"]]
38921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38922
+  (0.4ms) rollback transaction
38923
+  (0.1ms) begin transaction
38924
+  (0.1ms) SAVEPOINT active_record_1
38925
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.135299"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-20 22:42:11.134342"], ["updated_at", "2014-12-21 22:42:11.135299"]]
38926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38927
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.136657' OR start_delivering_at IS NULL)
38928
+ AND (stop_delivering_at > '2014-12-21 22:42:11.136659' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38929
+  (0.4ms) rollback transaction
38930
+  (0.1ms) begin transaction
38931
+  (0.1ms) SAVEPOINT active_record_1
38932
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.139849"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:42:11.139060"], ["updated_at", "2014-12-21 22:42:11.139849"]]
38933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38934
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.141377' OR start_delivering_at IS NULL)
38935
+ AND (stop_delivering_at > '2014-12-21 22:42:11.141380' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38936
+  (0.4ms) rollback transaction
38937
+  (0.1ms) begin transaction
38938
+  (0.1ms) SAVEPOINT active_record_1
38939
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.144820"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:42:11.143900"], ["stop_delivering_at", "2014-12-21 22:42:11.143901"], ["updated_at", "2014-12-21 22:42:11.144820"]]
38940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38941
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.146251' OR start_delivering_at IS NULL)
38942
+ AND (stop_delivering_at > '2014-12-21 22:42:11.146253' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38943
+  (0.4ms) rollback transaction
38944
+  (0.1ms) begin transaction
38945
+  (0.1ms) SAVEPOINT active_record_1
38946
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.149741"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-22 22:42:11.148653"], ["updated_at", "2014-12-21 22:42:11.149741"]]
38947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38948
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.151106' OR start_delivering_at IS NULL)
38949
+ AND (stop_delivering_at > '2014-12-21 22:42:11.151108' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38950
+  (0.4ms) rollback transaction
38951
+  (0.1ms) begin transaction
38952
+  (0.1ms) SAVEPOINT active_record_1
38953
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.154248"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:42:11.153450"], ["stop_delivering_at", "2014-12-22 22:42:11.153451"], ["updated_at", "2014-12-21 22:42:11.154248"]]
38954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38955
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.155475' OR start_delivering_at IS NULL)
38956
+ AND (stop_delivering_at > '2014-12-21 22:42:11.155477' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38957
+  (0.3ms) rollback transaction
38958
+  (0.1ms) begin transaction
38959
+  (0.1ms) SAVEPOINT active_record_1
38960
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.158913"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-22 22:42:11.158043"], ["updated_at", "2014-12-21 22:42:11.158913"]]
38961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38962
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:42:11.160140' OR start_delivering_at IS NULL)
38963
+ AND (stop_delivering_at > '2014-12-21 22:42:11.160142' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
38964
+  (0.4ms) rollback transaction
38965
+  (0.1ms) begin transaction
38966
+  (0.1ms) SAVEPOINT active_record_1
38967
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.163764"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n :operator: =\n"], ["updated_at", "2014-12-21 22:42:11.163764"]]
38968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38969
+  (0.3ms) rollback transaction
38970
+  (0.1ms) begin transaction
38971
+  (0.1ms) SAVEPOINT active_record_1
38972
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.167765"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n"], ["updated_at", "2014-12-21 22:42:11.167765"]]
38973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38974
+  (0.0ms) SAVEPOINT active_record_1
38975
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.170082"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.170082"]]
38976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38977
+  (0.1ms) SAVEPOINT active_record_1
38978
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.172071"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:42:11.172071"]]
38979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38980
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38981
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38982
+  (1.2ms) rollback transaction
38983
+  (0.1ms) begin transaction
38984
+  (0.1ms) SAVEPOINT active_record_1
38985
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.178349"], ["limit_to_users", "---\n- :field: free?\n :value: true\n"], ["updated_at", "2014-12-21 22:42:11.178349"]]
38986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38987
+  (0.1ms) SAVEPOINT active_record_1
38988
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.181510"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.181510"]]
38989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38990
+  (0.1ms) SAVEPOINT active_record_1
38991
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.183784"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:42:11.183784"]]
38992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38993
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38994
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
38995
+  (0.6ms) rollback transaction
38996
+  (0.2ms) begin transaction
38997
+  (0.1ms) SAVEPOINT active_record_1
38998
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.189051"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:42:11.188126"], ["updated_at", "2014-12-21 22:42:11.189051"]]
38999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39000
+  (0.1ms) SAVEPOINT active_record_1
39001
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.190915"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:42:11.190373"], ["updated_at", "2014-12-21 22:42:11.190915"]]
39002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39003
+  (0.1ms) SAVEPOINT active_record_1
39004
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.193080"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.193080"]]
39005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39006
+  (0.0ms) SAVEPOINT active_record_1
39007
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39008
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.195079"], ["updated_at", "2014-12-21 22:42:11.195079"], ["user_id", 1]]
39009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39010
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39011
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39012
+ starburst_announcement_views.user_id = 1 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39013
+  (0.6ms) rollback transaction
39014
+  (0.1ms) begin transaction
39015
+  (0.1ms) SAVEPOINT active_record_1
39016
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.199271"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:42:11.198407"], ["updated_at", "2014-12-21 22:42:11.199271"]]
39017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39018
+  (0.1ms) SAVEPOINT active_record_1
39019
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.201224"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:42:11.200673"], ["updated_at", "2014-12-21 22:42:11.201224"]]
39020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39021
+  (0.1ms) SAVEPOINT active_record_1
39022
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.203196"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.203196"]]
39023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39024
+  (0.0ms) SAVEPOINT active_record_1
39025
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.204635"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.204635"]]
39026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39027
+  (0.1ms) SAVEPOINT active_record_1
39028
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39029
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.206910"], ["updated_at", "2014-12-21 22:42:11.206910"], ["user_id", 1]]
39030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39031
+ Starburst::Announcement Load (0.4ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39032
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39033
+ starburst_announcement_views.user_id = 2 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39034
+  (0.6ms) rollback transaction
39035
+  (0.1ms) begin transaction
39036
+  (0.1ms) SAVEPOINT active_record_1
39037
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.212566"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:42:11.211653"], ["updated_at", "2014-12-21 22:42:11.212566"]]
39038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39039
+  (0.0ms) SAVEPOINT active_record_1
39040
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:42:11.214170"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:42:11.213829"], ["updated_at", "2014-12-21 22:42:11.214170"]]
39041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39042
+  (0.0ms) SAVEPOINT active_record_1
39043
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:42:11.216071"], ["subscription", ""], ["updated_at", "2014-12-21 22:42:11.216071"]]
39044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39045
+  (0.0ms) SAVEPOINT active_record_1
39046
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39047
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:42:11.218424"], ["updated_at", "2014-12-21 22:42:11.218424"], ["user_id", 1]]
39048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39049
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39050
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39051
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:42:11.219477' OR start_delivering_at IS NULL)
39052
+ AND (stop_delivering_at > '2014-12-21 22:42:11.219480' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39053
+  (0.6ms) rollback transaction
39054
+  (0.4ms) begin transaction
39055
+  (0.1ms) SAVEPOINT active_record_1
39056
+ SQL (1.5ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.109235"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.109235"]]
39057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39058
+  (0.1ms) SAVEPOINT active_record_1
39059
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.114454"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.114454"]]
39060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39061
+  (0.1ms) SAVEPOINT active_record_1
39062
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.182919"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.182919"]]
39063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39064
+  (0.1ms) SAVEPOINT active_record_1
39065
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39066
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.203042"], ["updated_at", "2014-12-21 22:44:26.203042"], ["user_id", 1]]
39067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39068
+  (0.0ms) SAVEPOINT active_record_1
39069
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39070
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.205955"], ["updated_at", "2014-12-21 22:44:26.205955"], ["user_id", 2]]
39071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39072
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39073
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39074
+  (1.1ms) rollback transaction
39075
+  (0.1ms) begin transaction
39076
+  (0.1ms) SAVEPOINT active_record_1
39077
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.212765"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.212765"]]
39078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39079
+  (0.0ms) SAVEPOINT active_record_1
39080
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.214517"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.214517"]]
39081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39082
+  (0.1ms) SAVEPOINT active_record_1
39083
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.216226"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.216226"]]
39084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39085
+  (0.0ms) SAVEPOINT active_record_1
39086
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39087
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.218822"], ["updated_at", "2014-12-21 22:44:26.218822"], ["user_id", 1]]
39088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39089
+  (0.1ms) SAVEPOINT active_record_1
39090
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39091
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2014-12-21 22:44:26.222447"], ["updated_at", "2014-12-21 22:44:26.222447"], ["user_id", 1]]
39092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39093
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39094
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39095
+  (0.6ms) rollback transaction
39096
+  (0.1ms) begin transaction
39097
+  (0.1ms) SAVEPOINT active_record_1
39098
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.226979"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.226979"]]
39099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39100
+  (0.0ms) SAVEPOINT active_record_1
39101
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.228784"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.228784"]]
39102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39103
+  (0.1ms) SAVEPOINT active_record_1
39104
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39105
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.232900"], ["updated_at", "2014-12-21 22:44:26.232900"], ["user_id", 1]]
39106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39107
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39108
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39109
+  (0.6ms) rollback transaction
39110
+  (0.1ms) begin transaction
39111
+  (0.1ms) rollback transaction
39112
+  (0.4ms) begin transaction
39113
+  (0.1ms) SAVEPOINT active_record_1
39114
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:44:26.247667"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.247667"]]
39115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39116
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:44:26 -0500
39117
+ Processing by PagesController#home as HTML
39118
+ Rendered pages/home.html.erb within layouts/application (1.6ms)
39119
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (1.6ms)
39120
+ Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.0ms)
39121
+  (0.6ms) rollback transaction
39122
+  (0.1ms) begin transaction
39123
+  (0.1ms) SAVEPOINT active_record_1
39124
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.299830"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.299830"]]
39125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39126
+  (0.1ms) SAVEPOINT active_record_1
39127
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:44:26.302493"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.302493"]]
39128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39129
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:44:26 -0500
39130
+ Processing by PagesController#home as HTML
39131
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39132
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39133
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39134
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:44:26.306538' OR start_delivering_at IS NULL)
39135
+ AND (stop_delivering_at > '2014-12-21 22:44:26.306540' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39136
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (4.6ms)
39137
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.2ms)
39138
+  (0.1ms) SAVEPOINT active_record_1
39139
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39140
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.314653"], ["updated_at", "2014-12-21 22:44:26.314653"], ["user_id", 1]]
39141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39142
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:44:26 -0500
39143
+ Processing by PagesController#home as HTML
39144
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39145
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39146
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39147
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:44:26.319015' OR start_delivering_at IS NULL)
39148
+ AND (stop_delivering_at > '2014-12-21 22:44:26.319019' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39149
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (1.9ms)
39150
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
39151
+  (0.8ms) rollback transaction
39152
+  (0.1ms) begin transaction
39153
+  (0.1ms) SAVEPOINT active_record_1
39154
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.325221"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.325221"]]
39155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39156
+  (0.1ms) SAVEPOINT active_record_1
39157
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-12-21 22:44:26.327491"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.327491"]]
39158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39159
+ Started GET "/" for 127.0.0.1 at 2014-12-21 17:44:26 -0500
39160
+ Processing by PagesController#home as HTML
39161
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39162
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39163
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39164
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:44:26.331512' OR start_delivering_at IS NULL)
39165
+ AND (stop_delivering_at > '2014-12-21 22:44:26.331515' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39166
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (2.8ms)
39167
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
39168
+  (0.9ms) rollback transaction
39169
+  (0.1ms) begin transaction
39170
+  (0.1ms) SAVEPOINT active_record_1
39171
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.339541"], ["limit_to_users", "---\n- :field: free?\n :value: true\n"], ["updated_at", "2014-12-21 22:44:26.339541"]]
39172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39173
+  (0.1ms) SAVEPOINT active_record_1
39174
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.342149"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.342149"]]
39175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39176
+  (0.1ms) SAVEPOINT active_record_1
39177
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.343815"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:44:26.343815"]]
39178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39179
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39180
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39181
+  (0.8ms) rollback transaction
39182
+  (0.1ms) begin transaction
39183
+  (0.1ms) SAVEPOINT active_record_1
39184
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.349522"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n"], ["updated_at", "2014-12-21 22:44:26.349522"]]
39185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39186
+  (0.1ms) SAVEPOINT active_record_1
39187
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.352099"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.352099"]]
39188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39189
+  (0.1ms) SAVEPOINT active_record_1
39190
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.408414"], ["subscription", "monthly"], ["updated_at", "2014-12-21 22:44:26.408414"]]
39191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39192
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39193
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39194
+  (0.7ms) rollback transaction
39195
+  (0.1ms) begin transaction
39196
+  (0.1ms) SAVEPOINT active_record_1
39197
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.413272"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n :operator: =\n"], ["updated_at", "2014-12-21 22:44:26.413272"]]
39198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39199
+  (0.3ms) rollback transaction
39200
+  (0.1ms) begin transaction
39201
+  (0.1ms) SAVEPOINT active_record_1
39202
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.417059"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:44:26.416357"], ["stop_delivering_at", "2014-12-21 22:44:26.416358"], ["updated_at", "2014-12-21 22:44:26.417059"]]
39203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39204
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.418656' OR start_delivering_at IS NULL)
39205
+ AND (stop_delivering_at > '2014-12-21 22:44:26.418658' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39206
+  (0.4ms) rollback transaction
39207
+  (0.1ms) begin transaction
39208
+  (0.1ms) SAVEPOINT active_record_1
39209
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.421503"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-22 22:44:26.420684"], ["updated_at", "2014-12-21 22:44:26.421503"]]
39210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39211
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.422938' OR start_delivering_at IS NULL)
39212
+ AND (stop_delivering_at > '2014-12-21 22:44:26.422940' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39213
+  (0.4ms) rollback transaction
39214
+  (0.1ms) begin transaction
39215
+  (0.1ms) SAVEPOINT active_record_1
39216
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.425874"], ["limit_to_users", nil], ["stop_delivering_at", "2014-12-20 22:44:26.425098"], ["updated_at", "2014-12-21 22:44:26.425874"]]
39217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39218
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.427019' OR start_delivering_at IS NULL)
39219
+ AND (stop_delivering_at > '2014-12-21 22:44:26.427020' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39220
+  (0.4ms) rollback transaction
39221
+  (0.1ms) begin transaction
39222
+  (0.1ms) SAVEPOINT active_record_1
39223
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.430340"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:44:26.429201"], ["updated_at", "2014-12-21 22:44:26.430340"]]
39224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39225
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.431739' OR start_delivering_at IS NULL)
39226
+ AND (stop_delivering_at > '2014-12-21 22:44:26.431741' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39227
+  (0.4ms) rollback transaction
39228
+  (0.1ms) begin transaction
39229
+  (0.1ms) SAVEPOINT active_record_1
39230
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.434885"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:44:26.433997"], ["stop_delivering_at", "2014-12-22 22:44:26.433998"], ["updated_at", "2014-12-21 22:44:26.434885"]]
39231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39232
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.436171' OR start_delivering_at IS NULL)
39233
+ AND (stop_delivering_at > '2014-12-21 22:44:26.436173' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39234
+  (0.4ms) rollback transaction
39235
+  (0.1ms) begin transaction
39236
+  (0.1ms) SAVEPOINT active_record_1
39237
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.438753"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-22 22:44:26.438024"], ["updated_at", "2014-12-21 22:44:26.438753"]]
39238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39239
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-12-21 22:44:26.439913' OR start_delivering_at IS NULL)
39240
+ AND (stop_delivering_at > '2014-12-21 22:44:26.439915' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39241
+  (0.3ms) rollback transaction
39242
+  (0.1ms) begin transaction
39243
+  (0.0ms) SAVEPOINT active_record_1
39244
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.442629"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:44:26.441920"], ["updated_at", "2014-12-21 22:44:26.442629"]]
39245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39246
+  (0.0ms) SAVEPOINT active_record_1
39247
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.443971"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:44:26.443664"], ["updated_at", "2014-12-21 22:44:26.443971"]]
39248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39249
+  (0.0ms) SAVEPOINT active_record_1
39250
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.445485"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.445485"]]
39251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39252
+  (0.0ms) SAVEPOINT active_record_1
39253
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39254
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.447587"], ["updated_at", "2014-12-21 22:44:26.447587"], ["user_id", 1]]
39255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39256
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39257
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39258
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-12-21 22:44:26.448559' OR start_delivering_at IS NULL)
39259
+ AND (stop_delivering_at > '2014-12-21 22:44:26.448561' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39260
+  (0.6ms) rollback transaction
39261
+  (0.1ms) begin transaction
39262
+  (0.1ms) SAVEPOINT active_record_1
39263
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.451739"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:44:26.450937"], ["updated_at", "2014-12-21 22:44:26.451739"]]
39264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39265
+  (0.1ms) SAVEPOINT active_record_1
39266
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.453549"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:44:26.453092"], ["updated_at", "2014-12-21 22:44:26.453549"]]
39267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39268
+  (0.0ms) SAVEPOINT active_record_1
39269
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.455651"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.455651"]]
39270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39271
+  (0.0ms) SAVEPOINT active_record_1
39272
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.456896"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.456896"]]
39273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39274
+  (0.0ms) SAVEPOINT active_record_1
39275
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39276
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.459121"], ["updated_at", "2014-12-21 22:44:26.459121"], ["user_id", 1]]
39277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39278
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39279
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39280
+ starburst_announcement_views.user_id = 2 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39281
+  (0.6ms) rollback transaction
39282
+  (0.1ms) begin transaction
39283
+  (0.0ms) SAVEPOINT active_record_1
39284
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.463879"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-20 22:44:26.463129"], ["updated_at", "2014-12-21 22:44:26.463879"]]
39285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39286
+  (0.0ms) SAVEPOINT active_record_1
39287
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2014-12-21 22:44:26.466524"], ["limit_to_users", nil], ["start_delivering_at", "2014-12-21 22:44:26.466174"], ["updated_at", "2014-12-21 22:44:26.466524"]]
39288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39289
+  (0.0ms) SAVEPOINT active_record_1
39290
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-21 22:44:26.467944"], ["subscription", ""], ["updated_at", "2014-12-21 22:44:26.467944"]]
39291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39292
+  (0.1ms) SAVEPOINT active_record_1
39293
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39294
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.470287"], ["updated_at", "2014-12-21 22:44:26.470287"], ["user_id", 1]]
39295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39296
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39297
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39298
+ starburst_announcement_views.user_id = 1 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39299
+  (0.6ms) rollback transaction
39300
+  (0.1ms) begin transaction
39301
+  (0.0ms) SAVEPOINT active_record_1
39302
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:44:26.474152"], ["limit_to_users", nil], ["title", "Test title"], ["updated_at", "2014-12-21 22:44:26.474152"]]
39303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39304
+  (0.4ms) rollback transaction
39305
+  (0.1ms) begin transaction
39306
+  (0.0ms) SAVEPOINT active_record_1
39307
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-12-21 22:44:26.477095"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.477095"]]
39308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39309
+  (0.4ms) rollback transaction
39310
+  (0.1ms) begin transaction
39311
+  (0.0ms) SAVEPOINT active_record_1
39312
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
39313
+  (0.0ms) rollback transaction
39314
+  (0.1ms) begin transaction
39315
+  (0.1ms) rollback transaction
39316
+  (0.1ms) begin transaction
39317
+  (0.1ms) SAVEPOINT active_record_1
39318
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.486379"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.486379"]]
39319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39320
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39321
+ Parameters: {"id"=>"1"}
39322
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
39323
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
39324
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39325
+  (0.4ms) rollback transaction
39326
+  (0.1ms) begin transaction
39327
+  (0.1ms) SAVEPOINT active_record_1
39328
+ SQL (1.6ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.501687"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.501687"]]
39329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39330
+  (0.0ms) SAVEPOINT active_record_1
39331
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-12-21 22:44:26.507904"], ["limit_to_users", nil], ["updated_at", "2014-12-21 22:44:26.507904"]]
39332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39333
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39334
+ Parameters: {"id"=>"1"}
39335
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
39336
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" WHERE "starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1 ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
39337
+  (0.1ms) SAVEPOINT active_record_1
39338
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39339
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-12-21 22:44:26.522423"], ["updated_at", "2014-12-21 22:44:26.522423"], ["user_id", 10]]
39340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39341
+ Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 0.6ms)
39342
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
39343
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39344
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39345
+ Parameters: {"id"=>"2"}
39346
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 2]]
39347
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" WHERE "starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 2 ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
39348
+  (0.0ms) SAVEPOINT active_record_1
39349
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39350
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2014-12-21 22:44:26.528721"], ["updated_at", "2014-12-21 22:44:26.528721"], ["user_id", 10]]
39351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39352
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)
39353
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
39354
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39355
+  (0.7ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starburst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails