Step into playamo, where thrilling slots and glamorous bonuses create nonstop excitement. Each spin delivers luxurious rewards and unforgettable wins.

At winport casino sign up, enjoy vibrant gameplay and bountiful bonuses. Every moment promises high-class thrills and spectacular victories.

Discover aussie play casino login, where dazzling slots and massive rewards combine for a luxurious casino experience. Each spin offers elegance, excitement, and big wins.

Experience king billy casino login australia, a glamorous casino featuring thrilling gameplay and generous bonuses. Every spin is filled with luxury, excitement, and unforgettable victories.

Category ROR

When testing Rails Model and you encounter a ActiveRecord::NotNullViolation, this means you need to provide some default value for an attribute. Normally Mysql wont bug you to provide it, but in newer versions it does require it.

In my case it was due to created_at field without a default value.

ActiveRecord::NotNullViolation:

Mysql2::Error: Field 'created_at' doesn't have a default value

This happens when Mysql turns on its strict mode by default and requires you to provide a default value for the attribute. If you don’t want to provide a value then you can just simply turn off strict mode by adding this to database.yml file:

test:
host: ...
username: ...
strict: false

Now run your specs and they will pass without throwing this error.

Happy Coding!