module Aliyun::Log::Record::ClassMethods
Public Instance Methods
logstore(options = {})
click to toggle source
# File lib/aliyun/log/record.rb, line 49 def logstore(options = {}) opt = options.dup if opt[:timestamps] && !Config.timestamps field :created_at, :text elsif opt[:timestamps] == false && Config.timestamps remove_field :created_at end self._schema_load = true if opt[:auto_sync] == false opt[:field_doc_value] = opt[:field_doc_value] != false self.options = opt end