Sha256: cc801b8ec9048d4bfc355e123ce4899f11b8ce644c383cfeaa6f4ed6f0135719
Contents?: true
Size: 702 Bytes
Versions: 21
Compression:
Stored size: 702 Bytes
Contents
class UpdateOrganizationMetadata < ActiveRecord::Migration def change add_column :organizations, :push_disabled, :boolean add_column :organizations, :pull_disabled, :boolean change_column :organizations, :synchronized_entities, :text # Migration to update the way we handle synchronized_entities for data sharing. # Before : synchronized_entities = {company: true} # After: synchronized_entities = {company: {can_push_to_connec: true, can_push_to_external: true}} #We also add metadata from MnoHub Maestrano::Connector::Rails::Organization.all.each do |o| o.reset_synchronized_entities o.enable_historical_data(true) if o.push_disabled end end end
Version data entries
21 entries across 21 versions & 1 rubygems