Skip to content

Commit

Permalink
Drop *all* created functions upon rolling back
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilevsky committed Jun 14, 2017
1 parent 541b0a3 commit b8e150c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generators/logidze/install/templates/migration.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ class <%= @migration_class_name %> < ActiveRecord::Migration
<% unless update? %>
execute <<-SQL
DROP FUNCTION logidze_version(bigint, jsonb, timestamp with time zone, text[]) CASCADE;
DROP FUNCTION logidze_exclude_keys(jsonb, text[]) CASCADE;
DROP FUNCTION logidze_compact_history(jsonb) CASCADE;
DROP FUNCTION logidze_snapshot(jsonb, text, text[]) CASCADE;
DROP FUNCTION logidze_logger() CASCADE;
Expand Down

0 comments on commit b8e150c

Please sign in to comment.