0

我的 Rails 应用程序生成以下服务器查询

Processing by ResponsesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WJBM8CJQaLxkRfC3/cGimaEytM3EvqCWhOmfX1WBRQA=", "response"=>{"q_id"=>"4", "taker_id"=>"10", "value"=>"4", "text"=>"fsfsf"}, "commit"=>"Create Response", "locale"=>"en"} 

Question Load (0.1ms)  SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1  [["id", "4"]]
(0.1ms)  

begin transaction
SQL (0.4ms)  INSERT INTO "responses" ("created_at", "q_id", "taker_id", "text", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?)  [["created_at", Fri, 11 Oct 2013 18:54:10 UTC +00:00], ["q_id", 4], ["taker_id", 10], ["text", "fsfsf"], ["updated_at", Fri, 11 Oct 2013 18:54:10 UTC +00:00], ["value", 4]]

(2.3ms)  commit transaction

default_url_options is passed options: {}

但是,我在本地 mysql 数据库中看不到任何实际变化(在 macos 上)

mysql> 使用 medisupply 读取表信息以补全表名和列名 你可以关闭这个功能来获得更快的启动 -A

Database changed
mysql> select * from responses
    -> ;
Empty set (0,00 sec)

任何想法可能是什么原因?它让我发疯。

我的 database.yml 配置:

development:
  adapter: mysql
  encoding: utf8
  reconnect: false
  host: localhost
  database: medisupply
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock 

非常感谢

4

0 回答 0