Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amancevice/activerecord-aws

Using AWS with ActiveRecord
https://github.com/amancevice/activerecord-aws

Last synced: 17 days ago
JSON representation

Using AWS with ActiveRecord

Awesome Lists containing this project

README

        

# AWS Helpers for ActiveRecord

[![build](https://travis-ci.org/amancevice/activerecord-aws.svg?branch=master)](https://travis-ci.org/amancevice/activerecord-aws)

## Installation

Add this line(s) to your application's Gemfile:

```ruby
gem 'activerecord-aws' github:'amancevice/activerecord-aws',
require:'active_record/aws',
tag:''
```

And then execute:

```bash
bundle
```

## Usage

Currently the only helper is a tool to use encrypted passwords in your `database.yml` files.

Instead of providing a `password` key in a configuration definition, use `ciphertext`:

```yaml
production:
adapter: mysql
ciphertext: AQECAHhXdRbgz8ljDIWpU51...=
database: production
host: localhost
port: 3306
username: produser
```

Then, add the following line to your `Rakefile`:

```ruby
ActiveRecord::Base.decrypt_password if ActiveRecord::Base.encrypted_password?
```