tasks/databases/oracle.rake in composite_primary_keys-9.0.6 vs tasks/databases/oracle.rake in composite_primary_keys-9.0.7
- old
+ new
@@ -12,10 +12,10 @@
schema = File.join(PROJECT_ROOT, 'test', 'fixtures', 'db_definitions', 'oracle.sql')
sql = File.read(schema)
sql.split(';').each do |command|
- ActiveRecord::Base.connection.execute(command)
+ ActiveRecord::Base.connection.execute(command) unless command.blank?
end
ActiveRecord::Base.clear_all_connections!
end