Module: ActiveRecord
- Defined in:
- lib/evasion-db/postgres_patch.rb,
lib/evasion-db/idmef-fetchers/prelude-db/lib/patches/postgres_patch.rb
Overview
This Patch will fix the Error: ActiveRecord::StatementInvalid: PGError: ERROR: relation “Prelude_Alert” does not exist LINE 4: WHERE a.attrelid = ‘“Prelude_Alert”’::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"Prelude_Alert"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
Defined Under Namespace
Modules: ConnectionAdapters