Class: ZeroRuby::ZeroClient

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/zero_ruby/zero_client.rb

Overview

Note:

Do NOT run migrations for this table - zero-cache manages it.

ZeroClient model for LMID (Last Mutation ID) tracking. This model interfaces with Zero’s zero_0.clients table, which is automatically created and managed by zero-cache.

Table Schema (created by zero-cache):

clientGroupID  TEXT   - The client group identifier
clientID       TEXT   - The client identifier
lastMutationID INTEGER - The last processed mutation ID for this client
userID         TEXT   - The user identifier (optional)

Instance Method Summary collapse

Instance Method Details

#readonly?Boolean

Returns:

  • (Boolean)


20
21
22
23
# File 'lib/zero_ruby/zero_client.rb', line 20

def readonly?
  # Allow updates through the LMID store's direct SQL
  false
end