Ruby on Rails Friday, January 3, 2020



On Thursday, January 2, 2020 at 7:15:40 PM UTC-5, hasan...@gmail.com wrote:
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 <fuge...@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 list

database.yml

default: &default
  adapter: mysql2
  encoding: utf8
  pool: 5
  socket: /var/run/mysqld/mysqld.sock


development:
  <<: *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 rubyonra...@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.

Sent from my mobile device
Envoye de mon portable

Thanks   I found the cause of the error by running `rake assets:precompile`, I had an extra option that didn't belong in app/assets/config/manifest.js I had put //= link_directory ../stylesheets .css .scss where it will only only one option I reverted to //= link_directory ../stylesheets .css to solve

--
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/8c149971-58f1-4a8f-a4c1-668913ee493c%40googlegroups.com.

No comments:

Post a Comment