method
create_entry
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::InternalMetadata
create_entry(connection, key, value)private
No documentation available.
# File activerecord/lib/active_record/internal_metadata.rb, line 130
def create_entry(connection, 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(connection)],
[arel_table[:updated_at], current_time(connection)]
]
connection.insert(im, "#{self.class} Create", primary_key, key)
end