Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Rails 4 support #79
Highlight of changes
There were more changes, commit messages have some more details.
RAILS_VERSION=4.0 bundle update RAILS_VERSION=4.0 bundle exec rake test:sqlite3
Rails 4 now does
#<Class:0x007f87df0033e0>#test: #import with :synchronization option synchronizes passed in ActiveRecord model instances with the data just imported: ActiveRecord::StatementInvalid: Mysql2::Error: Field 'title' doesn't have a default value: INSERT INTO `topics` (`id`,`author_name`,`created_on`,`created_at`,`updated_on`,`updated_at`) VALUES (100,'Jerry Carter','2013-06-15 01:06:01','2013-06-15 01:06:01','2013-06-15 01:06:01','2013-06-15 01:06:01'),(101,'Chad Fowler','2013-06-15 01:06:01','2013-06-15 01:06:01','2013-06-15 01:06:01','2013-06-15 01:06:01') ON DUPLICATE KEY UPDATE `topics`.`author_name`=VALUES(`author_name`),`topics`.`updated_on`=VALUES(`updated_on`),`topics`.`updated_at`=VALUES(`updated_at`)
setting strict mode to false (the way all Rails versions prior Rails 4 work) helps to avoid this issue.
I'm not sure how to deal with it, MySQL is clearly complaining on field title that does not have default value in database.
Thanks. Please let me know if you have any ideas so I can keep digging into issue mentioned.
Sent from my iPhone
On Feb 16, 2013, at 10:56 AM, Zach Dennis firstname.lastname@example.org wrote:
I'm not very familiar with that so I will need to look more into to figure out
Whoever needs this asap can try using my branch and report if there is any issues. Do not forget to update your database.yml as I did here f735477