Skip to content

Commit

Permalink
Add pgcrypto extension and insert supervisor user into customers table
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianoflorentino committed Mar 31, 2024
1 parent 0aed25a commit 744b176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20240331143457_add_supervisor_user_to_customers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class AddSupervisorUserToCustomers < ActiveRecord::Migration[7.1]

def up
execute <<-SQL.squish
CREATE EXTENSION IF NOT EXISTS pgcrypto;
INSERT INTO customers (name, email, password, role, created_at, updated_at)
VALUES ('Supervisor', '[email protected]', crypt('#{SUPERVISOR_PASSWORD}', gen_salt('bf')), 'admin', now(), now())
SQL
Expand Down

0 comments on commit 744b176

Please sign in to comment.