src code

class method ActiveRecord.connection.setStorage

ActiveRecord.connection.setStorage(storage) → null

Sets the storage (in memory database hash) affter connect() has been called.

ActiveRecord.connect(ActiveRecord.Adapters.InMemory);
ActiveRecord.connection.setStorage({my_table:{...}});