lib/db/sync.rb in db-sync-0.0.11 vs lib/db/sync.rb in db-sync-0.0.12

- old
+ new

@@ -29,12 +29,12 @@ data = File.read(table_filename(table)) all_records = YAML.load(data) current_records = table_model.records diff = Db::Sync::Diff.new(current_records, all_records, table_model.pkey) - insert_records(table, diff.inserts, commit) delete_records(table, diff.deletes, commit) update_records(table, diff.updates, commit) + insert_records(table, diff.inserts, commit) end end def insert_records(table, inserts, commit = true) inserts.each do |record|