Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jvshahid/sample-jruby-pg
A sample app to demonstrate using jruby-pg
https://github.com/jvshahid/sample-jruby-pg
Last synced: about 1 month ago
JSON representation
A sample app to demonstrate using jruby-pg
- Host: GitHub
- URL: https://github.com/jvshahid/sample-jruby-pg
- Owner: jvshahid
- Created: 2016-02-06T16:34:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-06T16:34:49.000Z (almost 9 years ago)
- Last Synced: 2023-04-10T15:01:53.514Z (over 1 year ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Sample jruby-pg app
### Gemfile setup
This is a sample app demonstrating using jruby-pg with a rails app. Add the
following to the `Gemfile`:```ruby
platform :jruby do
gem 'pg', '0.18', :platform => :jruby, :git => 'git://github.com/headius/jruby-pg.git', :branch => :master
end
```### Setup database.yml
```yml
development:
<<: *default
adapter: postgresql
database: foobar
```### Create database
```
createdb foobar
```### Migrate
The app has a `foobars` model, run the following to run the migration
```
rake db:migrate
```