diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-13 10:55:29 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-13 10:55:29 +0900 |
commit | 7dbe62006da2576770babe92234467574834f305 (patch) | |
tree | 4e489764d30c02f19194348aa861635c3492a545 /activerecord/lib/active_record/no_touching.rb | |
parent | 42a80721938453a2ecbba204ce21a0d496756178 (diff) | |
download | rails-7dbe62006da2576770babe92234467574834f305.tar.gz rails-7dbe62006da2576770babe92234467574834f305.tar.bz2 rails-7dbe62006da2576770babe92234467574834f305.zip |
Fix `create_table` with query from relation
If a relation has binds, `connection.to_sql(relation)` without binds
will generate invalid SQL. It should use `relation.to_sql` in that case.
Diffstat (limited to 'activerecord/lib/active_record/no_touching.rb')
0 files changed, 0 insertions, 0 deletions