以下仅针对 ruby -v 2.12 and rails -v 4.1.5 1. In Rails 4.1+, they deprecated db:test:prepare with that message. You can now just use: ActiveRecord::Migration.maintain_test_schema! in spec_helper.rb (or similar files if you're not using RSpec). That will aut...
(
展开)