Postgres database as a backend for Refile
MIT License
A PostgreSQL backend for Refile.
Add this line to your application's Gemfile:
gem 'refile-postgres', '~> 1.4.0'
And then execute:
$ bundle
Or install it yourself as:
$ gem install refile-postgres
Application must have sql as schema format to properly dump OID type.
# config/application.rb
config.active_record.schema_format = :sql
Generate migration for table were to store list of attachments.
$ rails g refile:postgres:migration
Run the migrations
$ rake db:migrate
Generate initializer and set Refile::Postgres as store
backend.
$ rails g refile:postgres:initializer
If you have been using refile-postgres before 1.3.0 version then please follow upgrade guide
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)