Ruby on Rails
Thursday, January 2, 2020
To set strict_mode on MySQL in rails, the knob you want is `strict: false`
On Thu, 2 Jan 2020 at 16:06, fugee ohu <fugee279@gmail.com> wrote:
--I'm thinking I'm getting this is because of mysql sql_mode traditional vs strict When I run select @@sql_mode on mysql console it returns a list of modes which include TRADITIONAL somewhere in the middle of the listdatabase.ymldefault: &default
adapter: mysql2
encoding: utf8
pool: 5
socket: /var/run/mysqld/mysqld.sockdevelopment:
<<: *default
database: mydb_development
username: myusername
password: mypassword
sql_mode: TRADITIONAL
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7349aa08-8212-4c18-981e-fb1412e8118d%40googlegroups.com.
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.
Envoye de mon portable
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDeFA4ch4bxXnBUvj1Potacw2L%3D7SVPaUFjjuMOjWY7vA%40mail.gmail.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment