Sha256: 13570e88245de342f38e18f4e552fa9a8975984796a7e0fc57960fabe4b373ae

Contents?: true

Size: 520 Bytes

Versions: 21

Compression:

Stored size: 520 Bytes

Contents

module SchemaPlus
  module Core
    module ActiveRecord
      module Migration
        module CommandRecorder

          def add_column(table_name, column_name, type, options = {})
            SchemaMonkey::Middleware::Migration::Column.start(caller: self, operation: :record, table_name: table_name, column_name: column_name, type: type, options: options.deep_dup) do |env|
              super env.table_name, env.column_name, env.type, env.options
            end
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
schema_plus_core-2.2.3 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.2.2 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.2.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.2.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.1.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.1.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-2.0.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-1.0.2 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-1.0.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-1.0.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.6.2 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.6.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.6.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.5.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.5.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.4.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.3.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.3.0 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.2.1 lib/schema_plus/core/active_record/migration/command_recorder.rb
schema_plus_core-0.2.0 lib/schema_plus/core/active_record/migration/command_recorder.rb