heartcombo--devise/test
Felipe Renan 45438fcfc4 Fix SQLite3 warning
Before setting this option, our test suite was giving the following warning:

```
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
boolean values and must have old data converted to 1 and 0 (its native boolean
serialization) before setting this flag to true. Conversion can be accomplished
by setting up a rake task which runs

  ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
  ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)

for all models and all boolean columns, after which the flag must be set to
true by adding the following to your application.rb file:

  Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
 (called from <top (required)> at $PATH/devise/test/rails_app/app/active_record/user.rb:5)
```

After configuring `represent_boolean_as_integer = true` as specified
above, we don't have this warning anymore.

More info:
https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html#method-c-represent_boolean_as_integer
2019-01-28 14:39:06 -02:00
..
controllers Issue 4895: Add `after_database_authentication` callback after sign_in immediately after password update (#4916) 2018-11-22 19:13:55 -02:00
generators Add Rails 6 to CI (#5009) 2019-01-22 12:43:31 -02:00
helpers Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
integration FIX plataformatec/devise#4127 (#4700) 2019-01-23 15:32:29 -02:00
mailers Use `update` instead of `update_attributes` 2018-03-29 15:39:24 -03:00
models Make `#increment_failed_attempts` concurrency safe (#4996) 2018-12-28 17:00:50 -02:00
omniauth Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
orm Add Rails 6 to CI (#5009) 2019-01-22 12:43:31 -02:00
rails_app Fix SQLite3 warning 2019-01-28 14:39:06 -02:00
support Add Rails 6 to CI (#5009) 2019-01-22 12:43:31 -02:00
test Add Rails 6 to CI (#5009) 2019-01-22 12:43:31 -02:00
delegator_test.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
devise_test.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
failure_app_test.rb Only flash if the request object that is loaded supports it (#4950) 2018-11-13 15:26:00 -02:00
mapping_test.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
models_test.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
parameter_sanitizer_test.rb Fix error when params is not a hash 2018-05-09 14:56:50 -03:00
rails_test.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00
routes_test.rb Add Rails 6 to CI (#5009) 2019-01-22 12:43:31 -02:00
secret_key_finder_test.rb find auto-generated secret_key_base in development (#4869) 2018-05-14 18:09:25 -03:00
test_helper.rb Fix corner case when confirmation_sent_at is equal to 0.days.ago (#4529) 2018-12-04 14:34:32 -02:00
test_models.rb Add the frozen_string_literal pragma comment to all Ruby files. (#4725) 2017-12-21 15:36:29 -02:00