How to get the created_at of the many to many association of User with friends in Rails 6?
I have 2 tables, one user and other friends, I have set up a relationship such that the user can follow one another.
I have 2 tables, one user and other friends, I have set up a relationship such that the user can follow one another.
We have app with specs: Ruby 2.6.5, Rails 4.2.11, MySQL 5.7.33 (max_execution_time = 1200000, 20minutes)
Im trying to install an open source rails 3.2.21 application that uses the mysql2
gem, but when i try and run the bundle
commant I get the following error:
Recently i changed my database from sqlite3 to mysql.When i ran my project i am getting this error in one of the file which is using this query.
I am trying to use data from the USDA found here: http://www.ars.usda.gov/Services/docs.htm?docid=23634
Upgrading to Rails 4, it seems MySQL strict mode is now on by default for Rails connections. I say this because my Rails app is getting “Mysql2::Error: Data too long for column” when saving a string value longer than 255 characters. Yet, I paste the same query into MySQL console (where global strict mode is reported to be off) and it works fine, just with truncation warnings. As further evidence, it says here “Rails 4 both use strict mode by default”.
So i have Rails applications, i installed react-rails gem, set it up and try to run test application.