module PG::Pglogical::MigrationExtension
Public Instance Methods
drop_table(table, options = {})
click to toggle source
Calls superclass method
# File lib/pg/pglogical/active_record_extension.rb, line 14 def drop_table(table, options = {}) table_string = table.to_s pgl = PG::Pglogical::Client.new(ApplicationRecord.connection) if pgl.enabled? pgl.replication_sets.each do |set| pgl.replication_set_remove_table(set, table_string) if pgl.tables_in_replication_set(set).include?(table_string) end end super end