Actions
Refactor #24838
closedset "Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true" and migrate everything
Description
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 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
Updated by Anonymous about 6 years ago
- Blocks Tracker #24837: Rails 6.0 Tracker added
Updated by Anonymous about 6 years ago
- Related to Tracker #21834: Rails 5.2 upgrade tasks added
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/7171 added
Updated by Tomer Brisker almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset f335055998719ee8b866a3fbad434fe26ee91645.
Actions