Skip to content

iamdbc/activerecord6-redshift-adapter

 
 

Repository files navigation

activerecord6-redshift-adapter

Amazon Redshift adapter for ActiveRecord 6 (Rails 6). I forked the project from https://github.com/ConsultingMD/activerecord5-redshift-adapter

Thanks for the auhors.

Usage

For Rails 6, write following in Gemfile:

gem 'activerecord6-redshift-adapter', git: 'https://github.com/iamdbc/activerecord6-redshift-adapter', branch: 'master'

In database.yml

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

OR your can use in URL

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

License

MIT license (same as ActiveRecord)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%