Sha256: 23ff527d89c52f95facac032d92a0edd7482ae4f6d9f6160639eb15f175e845d

Contents?: true

Size: 250 Bytes

Versions: 144

Compression:

Stored size: 250 Bytes

Contents

class MigrateEventTypesOnWebhooksOutgoingEvents < ActiveRecord::Migration[6.1]
  def up
    Webhooks::Outgoing::Event.find_each do |event|
      event.update_column(:event_type_id, event.payload.dig("event_type"))
    end
  end

  def down
  end
end

Version data entries

144 entries across 144 versions & 2 rubygems

Version Path
bullet_train-outgoing_webhooks-1.10.0 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.9.0 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.5 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.4 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.3 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.2 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.1 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.8.0 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.23 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.22 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.21 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.20 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.19 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.18 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.17 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.16 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.15 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.14 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.13 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb
bullet_train-outgoing_webhooks-1.7.12 db/migrate/20211127014001_migrate_event_types_on_webhooks_outgoing_events.rb