Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kostya/ruby-app-ar

RubyApp extension, adds ActiveRecord support.
https://github.com/kostya/ruby-app-ar

Last synced: 20 days ago
JSON representation

RubyApp extension, adds ActiveRecord support.

Awesome Lists containing this project

README

        

RubyAppAr
=========

[RubyApp](http://github.com/kostya/ruby-app) extension, adds ActiveRecord support.

Install
-------

Use generator:

ruby-app new app --ar

### OR Manually

Add to Gemfile:

gem 'ruby-app'
gem 'ruby-app-ar'

Add to Rakefile:

load "ruby-app/tasks.rake"
load "ruby-app-ar/tasks.rake"

Create

db/migrate
config/database.yml

Using
-----

Use as it is in Rails. But use APP_ENV for specify environment.

Examples:

$ rake db:create APP_ENV=test
$ rake db:migrate

Generate migration:

$ ruby-app migration bla