rails_db_convert_using_adapters
rails_db_convert_using_adapters copied to clipboard
For single-table-inheritance tables, the 'type' column doesn't get copied.
Type is a reserved word, so setting it in model.attributes doesn't work. Adding the following line just above new_model.id = model.id should do the trick: new_model[:type] = model[:type] if model[:type].present?
My fork at http://github.com/mlc/rails_db_convert_using_adapters should solve this issue as well, albeit in a different manner.
@mlc: it does not, as sqlite doesn't support the syntax of INSERT INTO with multiple values, it would have to be a new insert for each row.