rails console Apr 3rd, 2012 ruby on rails rails consoleで 1 ActiveRecord::Base.logger = Logger.new(STDOUT) って書くとSQLが吐かれるようになります。 1 2 User.first User Load (0.1ms) SELECT `users`.* FROM `users` WHERE (users.deleted_at IS NULL) LIMIT 1