Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amancevice/activerecord-aws
Using AWS with ActiveRecord
https://github.com/amancevice/activerecord-aws
Last synced: 9 days ago
JSON representation
Using AWS with ActiveRecord
- Host: GitHub
- URL: https://github.com/amancevice/activerecord-aws
- Owner: amancevice
- License: mit
- Created: 2017-10-26T12:42:16.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T14:00:06.000Z (6 months ago)
- Last Synced: 2024-10-27T17:57:49.786Z (about 2 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?
```