---
title: "Turso Adds Ruby on Rails Support"
description: "Turso has released a technical preview of libsql_activerecord, an ActiveRecord adapter that connects Rails applications to Turso/libSQL databases."
url: "https://swe.quest/articles/turso-adds-ruby-on-rails-support-80c171904d4e2326"
canonical: "https://turso.tech/blog/turso-adds-ruby-on-rails-support"
source: "Turso"
published: "2024-12-18"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 3
tags: ["ruby","sqlite","databases"]
---

# Turso Adds Ruby on Rails Support

A post on [Turso](https://swe.quest/sources/turso.md), published 2024-12-18, 3 min read, Announcement. Original: [https://turso.tech/blog/turso-adds-ruby-on-rails-support](https://turso.tech/blog/turso-adds-ruby-on-rails-support)

## Summary

Turso has released a technical preview of libsql\_activerecord, an ActiveRecord adapter that connects Rails applications to Turso/libSQL databases. Setup takes three steps: add the gem, set adapter: libsql with a database url and auth\_token in config/database.yml, and optionally set a local path for an embedded replica that syncs the remote database to a local file to remove network latency and allow offline work. The adapter also works outside Rails, in standalone ActiveRecord scripts and Sinatra apps, and supports migrations, CRUD, associations and raw SQL.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- Ruby on Rails basics ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- ActiveRecord

## Keywords

Turso, libSQL, ActiveRecord, Ruby on Rails, libsql\_activerecord, Sinatra, embedded replicas

## Related posts

- [Announcing Laravel Support and PHP PDO Interface](https://swe.quest/articles/announcing-laravel-support-and-php-pdo-interface-98c2c7a584efdc2c.md): Turso · 2025-01-09 · Medium · 4 min read · PHP, SQLite, Vector search
  Turso has released \`libsql-laravel\`, an official open-source Laravel adapter, along with a PHP PDO interface.
- [Toasty now fully supports Turso](https://swe.quest/articles/toasty-now-fully-supports-turso-b9805f71f7e75171.md): Turso · 2026-10-07 · Medium · 5 min read · Rust, SQLite, Local-first & sync, Serverless, Databases
  Toasty, the async Rust ORM from Tokio's creator, now supports Turso in three modes behind one API: local files with optional concurrent writes (transactions automatically wrapped in BEGIN CONCURRENT), a serverless remote mode over HTTP with URL and auth token, and local-first sync with explicit pull/push calls.
- [We're building Postgres in Rust. Using the LLVM of databases](https://swe.quest/articles/we-re-building-postgres-in-rust-using-the-llvm-of-databases-e44d34208278a99e.md): Turso · 2026-07-16 · Easy · 11 min read · PostgreSQL, SQLite, Rust, Query engines, Open source
  Turso, a Rust rewrite of SQLite, is adding a Postgres frontend by parsing Postgres SQL into a common AST and compiling it to Turso's VDBE bytecode, turning the engine into an "LLVM of databases" with pluggable frontends.
- [Introducing React Native Bindings for Turso](https://swe.quest/articles/introducing-react-native-bindings-for-turso-d4859b547f15d23e.md): Turso · 2026-01-29 · Medium · 3 min read · Local-first & sync, Mobile, React, SQLite
  \`@tursodatabase/sync-react-native\` is a single package that gives React Native apps on iOS and Android an embedded, SQLite-compatible Turso database plus optional bidirectional sync with Turso Cloud via \`pull\` and \`push\`, enabling offline-first apps.
- [Migrating data from MySQL to Turso](https://swe.quest/articles/migrating-data-from-mysql-to-turso-b6fe55604096d41a.md): Turso · 2024-03-08 · Medium · 2 min read · SQLite, MySQL, Schema migrations
  Moving a MySQL database to Turso takes three commands: dump it with mysqldump using --skip-extended-insert, convert the dump to a SQLite file with the mysql2sqlite script piped into sqlite3, then create a Turso database from that file with \`turso db create --from-file\`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
