README.md in fast_change_table-1.5.1 vs README.md in fast_change_table-1.6.0
- old
+ new
@@ -56,19 +56,19 @@
fast_add_indexes :sometable do |t|
t.index :some_column
t.index [:some_other_column, :column_three], :name => "a_multicolumn_index"
end
-copy\_table(from\_table, to\_table, remaps = [])
+copy\_table\_data(from\_table, to\_table, remaps = [])
* copies rows from one table into another.
by default copies data from column of from_table to to_table of same name.
will not copy data where there is no corresponding column.
the remaps argument can be supplied to tell copy table how to handle unmatched columns or override this behavior
for multiple remap columns provide an array of 2 element arrays
__Examples:__
- copy_table(old_users_without_email_hash, new_table, ['MD5(email)', 'email_hash'])
+ copy_table_data(old_users_without_email_hash, new_table, ['MD5(email)', 'email_hash'])
- copy_table(old_users_without_total, new_table, [['sum(payments)', 'total_payments'], ['avg(payments)', 'average_payments']])
+ copy_table_data(old_users_without_total, new_table, [['sum(payments)', 'total_payments'], ['avg(payments)', 'average_payments']])
\ No newline at end of file