Class: Omen::Schema

Inherits:
Object
  • Object
show all
Defined in:
app/models/omen/schema.rb

Overview

What Claude writes its SQL against: the app's own schema, less the tables a reading is kept in.

Constant Summary collapse

HINT =

A plain index is a note about speed; a unique one is a fact about the rows, so it stays.

/^\s*t\.index (?!.*unique: true).*\n/

Instance Method Summary collapse

Instance Method Details

#textString

Returns the schema, without this feature's own tables, their keys or their enum.

Returns:

  • (String)

    the schema, without this feature's own tables, their keys or their enum.



7
# File 'app/models/omen/schema.rb', line 7

def text = without_orphan_enums hidden.inject(source) { |left, name| without_table left, name }