Sha256: fa518c01cce8bb02a677662f13a159b675397df763408fb6fe3fb41d36f5c573

Contents?: true

Size: 386 Bytes

Versions: 3

Compression:

Stored size: 386 Bytes

Contents

#
# We've introduced the type column to the Group model.
# But, in the database, there might still be old records, where STI was used
# without type column.
#
# These records need to be updates. Otherwise the records can't be found anymore.
#


# # TODO: Remove this. This does not work with specs and sidekiq.
# Group.corporations_parent.child_groups.update_all("type = 'Corporation'")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 config/initializers/group_type_column_patches.rb
your_platform-1.0.0 config/initializers/group_type_column_patches.rb
your_platform-0.0.2 config/initializers/group_type_column_patches.rb