method
create_entry
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::InternalMetadata
create_entry(key, value)private
No documentation available.
# File activerecord/lib/active_record/internal_metadata.rb, line 116
def create_entry(key, value)
im = Arel::InsertManager.new(arel_table)
im.insert [
[arel_table[primary_key], key],
[arel_table[value_key], value],
[arel_table[:created_at], current_time],
[arel_table[:updated_at], current_time]
]
connection.insert(im, "#{self.class} Create", primary_key, key)
end