Class: Omen::Schema
- Inherits:
-
Object
- Object
- Omen::Schema
- 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
-
#text ⇒ String
The schema, without this feature's own tables, their keys or their enum.
Instance Method Details
#text ⇒ String
Returns 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 } |