Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues during setup and installation (existing project with data) #1

Open
stonehz opened this issue Oct 24, 2012 · 1 comment
Open

Comments

@stonehz
Copy link

stonehz commented Oct 24, 2012

I follow the steps but I get some errors
Steps followed:

  1. Install gem and migrate db
    Extensions exists in the db and "pgcrypto_columns" table gets created
  2. Edit Initializer file and add:
PGCrypto.keys[:private] = {:path => "./keys/private.key" , :armored => false, :password => "password" }
PGCrypto.keys[:public] = {:path => "./keys/public.key"}

3 . Edit my user.rb and add the following: pgcrypto :organisation_name
(column in my users table)

Starting Server and trying to CRUD User

During Create:
It works and the records gets saved
During Read/Update I get:
PG::Error: ERROR: failed to find conversion function from unknown to bytea

Any Ideas?

@flipsasser
Copy link
Member

Wow, sorry, again I missed an issue on Github. I'm updating my notification preferences!

Anyway, how did you generate your keys AND/OR what version of Postgres are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants