mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Enable "pgcrypto" postgres engine
This commit is contained in:
parent
157b383738
commit
4b977dc195
2 changed files with 21 additions and 0 deletions
5
db/migrate/20180612042234_enable_pgcrypto_ext.rb
Normal file
5
db/migrate/20180612042234_enable_pgcrypto_ext.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class EnablePgcryptoExt < ActiveRecord::Migration
|
||||
def change
|
||||
enable_extension 'pgcrypto'
|
||||
end
|
||||
end
|
|
@ -51,6 +51,20 @@ CREATE EXTENSION IF NOT EXISTS hstore WITH SCHEMA public;
|
|||
COMMENT ON EXTENSION hstore IS 'data type for storing sets of (key, value) pairs';
|
||||
|
||||
|
||||
--
|
||||
-- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: -
|
||||
--
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
|
||||
|
||||
|
||||
--
|
||||
-- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: -
|
||||
--
|
||||
|
||||
COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions';
|
||||
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
|
@ -4716,3 +4730,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180327151906');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20180331200125');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20180612042234');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue