lib/ridgepole/ext/schema_dumper.rb in ridgepole-0.7.1 vs lib/ridgepole/ext/schema_dumper.rb in ridgepole-0.7.2.beta
- old
+ new
@@ -17,10 +17,10 @@
remove_instance_variable(:@__with_default_fk_name)
end
end
def foreign_keys(table, stream)
- return super unless self.class.__with_default_fk_name
+ return super unless ActiveRecord::SchemaDumper.__with_default_fk_name
if (foreign_keys = @connection.foreign_keys(table)).any?
add_foreign_key_statements = foreign_keys.map do |foreign_key|
parts = [
"add_foreign_key #{remove_prefix_and_suffix(foreign_key.from_table).inspect}",