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

Storing as 'String' with Postgres & ActiveRecord Fails at Null Character #349

Closed
CKolkey opened this issue Jun 14, 2019 · 0 comments
Closed

Comments

@CKolkey
Copy link

CKolkey commented Jun 14, 2019

Had an issue with the database configuration as recommended. After a little research it seems that the correct way to set up the 'encrypted_*' columns is as binary data, not as a string. Does this sound right? It solved my problem.

create_table :users do |t|
    t.string :name
    t.binary :encrypted_ssn
    t.binary :encrypted_ssn_iv
    t.timestamps
  end
@CKolkey CKolkey closed this as completed May 28, 2024
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

1 participant