Remove duplicated keys from "db/schema.rb"
Force ordering of some associations.
Properly use Rails logger for importing

Outside of Rails controllers and models, the logger has to be referred
to as `Rails.logger` rather than simply `logger`.