Module: SchemaPlus::ForeignKeys::Middleware::Sql::Table::SQLite3

Defined in:
lib/schema_plus/foreign_keys/middleware/sql.rb

Instance Method Summary collapse

Instance Method Details

#before(env) ⇒ Object



22
23
24
# File 'lib/schema_plus/foreign_keys/middleware/sql.rb', line 22

def before(env)
  env.connection.execute('PRAGMA FOREIGN_KEYS = ON') if env.table_definition.foreign_keys.any?
end