tasks/databases/mysql.rake in composite_primary_keys-5.0.6 vs tasks/databases/mysql.rake in composite_primary_keys-5.0.8

- old
+ new

@@ -20,10 +20,12 @@ end Rake::Task['mysql:load_connection'].reenable Rake::Task['mysql:load_connection'].invoke #puts %(ActiveRecord::Base.connection.instance_variable_get(:@config)=#{(ActiveRecord::Base.connection.instance_variable_get(:@config)).inspect}) - ActiveRecord::Base.connection.execute(sql) + sql.split(";").each do |statement| + ActiveRecord::Base.connection.execute(statement) unless statement.strip.length == 0 + end end desc 'Drop the MySQL test database' task :drop_database => :load_connection do ActiveRecord::Base.connection.drop_database(SPEC['database'])