railscope 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc29cf9c10caee093f9522baf082ee343928f114a9eea9490caf1b5107b410e1
4
- data.tar.gz: e705db77c3b666499073046ed0cccfcdbacc8871024bb6d8393d6a875b55a93b
3
+ metadata.gz: d561fdc8df980db2ec3770416da4234a6ea1172e106edb84e7c9df9c806224b0
4
+ data.tar.gz: 13477b2b7d289394fce53e0c13281f545ee0ff38a66b4f608fe0ee6d77619302
5
5
  SHA512:
6
- metadata.gz: 0d49c922528f889a0c751ff9865da540a92250097b29108f7eb43be36598fd12addad625a6651100cac745fe553d76d4030c90af718611c0d94672fabc14ea87
7
- data.tar.gz: 78be37fbf93b9e6128be9135bc47995fbd65f6dc60cae1067c42b13ad2ee375e6365d92cb63cc698352d63d797e910869e19f060f352a77dbf42a80b88412b8f
6
+ metadata.gz: 736d4b7cd418af04af8f5cf57c50f9c8ede6cbb983ea12853dbca7bf2a4f8be42c86860385fbbdc2d1db5b8e32a97d9b62e4bf1654b8aa83d2aa8fdccfc3692f
7
+ data.tar.gz: 8a7e11f95d4748f680e1e58c7a0e0d0ae69517faef95b2f98543771c5f35d36074ad74f7517f817167957a7d52c30e799aab9478c45adafbbfa337571e88d49b
@@ -4,6 +4,8 @@ module Railscope
4
4
  class Entry < ApplicationRecord
5
5
  self.table_name = "railscope_entries"
6
6
 
7
+ before_create { self.uuid ||= SecureRandom.uuid }
8
+
7
9
  validates :entry_type, presence: true
8
10
  validates :occurred_at, presence: true
9
11
 
@@ -3,11 +3,11 @@
3
3
  class CreateRailscopeEntries < ActiveRecord::Migration[7.0]
4
4
  def change
5
5
  create_table :railscope_entries do |t|
6
- # UUID as public identifier
7
- t.uuid :uuid, default: "gen_random_uuid()", null: false
6
+ # UUID as public identifier (generated by Ruby via SecureRandom.uuid)
7
+ t.string :uuid, limit: 36, null: false
8
8
 
9
9
  # Batch ID groups all entries from a single request/job
10
- t.uuid :batch_id
10
+ t.string :batch_id, limit: 36
11
11
 
12
12
  # Family hash groups similar entries (e.g., same SQL pattern)
13
13
  t.string :family_hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Railscope
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phelipe Tussolini