Skip to content

Simple example application using Grape, with added ActiveRecord support

License

Notifications You must be signed in to change notification settings

jorgesuja/grape-activerecord-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grape ActiveRecord Setup

Simple example application using Grape, with added ActiveRecord support for generating database migrations, seeds and querying your data.

Migrations

The projet has a rakefile that includes all activerecord rake tasks plus one to generate the migration files. To generate a migration file, open a terminal and write:

rake db:generate_migration NAME=create_authors

Seeds

You can create a db/seeds.rb file to generate seed data. The rake task that executes the seeds.rb file is called as follows:

rake db:seed

Run

To run the application, open a terminal and start unicorn:

unicorn -c config/unicorn.rb

About

Simple example application using Grape, with added ActiveRecord support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages