1 class AddPropertiesToGroups < ActiveRecord::Migration
3 add_column :groups, :properties, :jsonb, default: {}
4 ActiveRecord::Base.connection.execute("CREATE INDEX group_index_on_properties ON groups USING gin (properties);")
8 ActiveRecord::Base.connection.execute("DROP INDEX IF EXISTS group_index_on_properties")
9 remove_column :groups, :properties