Sha256: ffcaa019f6e8ec78dca7f9501bb3b9d1aae96e036d19643d8e38a3329f5fe247

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

module ActiveRecordMigrationUi
  class ActiveRecordMigrationUiChannel < ApplicationCable::Channel
    def subscribed
      stream_from ActiveRecordMigrationUi.ac_channel_name
    end

    def migrate(data)
      OrganiseMigratingScript.call(version: data['version'])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_record_migration_ui-0.1.2 app/channels/active_record_migration_ui/active_record_migration_ui_channel.rb
active_record_migration_ui-0.1.1 app/channels/active_record_migration_ui/active_record_migration_ui_channel.rb
active_record_migration_ui-0.1.0 app/channels/active_record_migration_ui/active_record_migration_ui_channel.rb