README.md in postgres_upsert-1.0.0 vs README.md in postgres_upsert-1.1.0

- old
+ new

@@ -73,9 +73,20 @@ * COPY the data to user_temp * issue a query to insert all new records from users_temp_### into users (newness is determined by the presence of the primary key in the users table) * issue a query to update all records in users with the data in users_temp_### (matching on primary key) * drop the temp table. +### overriding the key_column + +By default pg_upsert uses the primary key on your ActiveRecord table to determine if each record should be inserted or updated. You can override the column using the :key_field option: + +```ruby +User.pg_upsert "/tmp/users.dat", :format => :binary, :key_column => ["external_twitter_id"] +``` + +obviously, the field you pass must be a unique key in your database (this is not enforced at the moment, but will be) + + ## Note on Patches/Pull Requests * Fork the project * add your feature/fix to your fork(rpsec tests pleaze) * submit a PR