Module: SchemaPlus::Core::ActiveRecord::Migration::CommandRecorder
- Defined in:
- lib/schema_plus/core/active_record/migration/command_recorder.rb
Instance Method Summary collapse
Instance Method Details
#add_column(table_name, column_name, type, options = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/schema_plus/core/active_record/migration/command_recorder.rb', line 7 def add_column(table_name, column_name, type, = {}) SchemaMonkey::Middleware::Migration::Column.start(caller: self, operation: :record, table_name: table_name, column_name: column_name, type: type, options: .deep_dup) do |env| super env.table_name, env.column_name, env.type, env. end end |