A long-lived project that still receives updates
Amazon Redshift adapter for ActiveRecord 7+
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 7.0, < 9.0
~> 1.0
 Project Readme

activerecord-redshift-adapter

Amazon Redshift adapter for ActiveRecord 7+ (Rails 7+). This is a fork from https://github.com/pennylane-hq/activerecord-adapter-redshift, which is a fork from https://rubygems.org/gems/activerecord7-redshift-adapter hosted on a private Gitlab instance. It's itself forked the project from https://github.com/kwent/activerecord6-redshift-adapter

Thanks to the auhors.

Usage

For Rails, add the following in the Gemfile:

gem 'activerecord-redshift-adapter'

Specify the adapter name in the database.yml file:

development:
  adapter: redshift
  host: host
  port: port
  database: db
  username: user
  password: password
  encoding: utf8

or use it directly in the connection or DATABASE_URL:

class SomeModel < ApplicationRecord
  establish_connection('redshift://username:password@host/database')
end

License

MIT license (same as ActiveRecord)