Rails ActiveRecord:创建时无需交易

时间:2018-11-15 09:38:12

标签: ruby-on-rails rails-activerecord

这是我的代码:

pry(main)> User.create!(password: 'password') 
(0.4ms)  BEGIN
User Create (0.5ms)  INSERT INTO "users" ...
(0.3ms)  COMMIT

如何不进行交易就使用单个create!

谢谢!

0 个答案:

没有答案