Module: ActiveRecord::Migration::Compatibility::V6_1::TableDefinition
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #change(name, type, index: nil, **options) ⇒ Object
- #column(name, type, index: nil, **options) ⇒ Object
- #new_column_definition(name, type, **options) ⇒ Object
Instance Method Details
#change(name, type, index: nil, **options) ⇒ Object
200 201 202 203 |
# File 'lib/active_record/migration/compatibility.rb', line 200 def change(name, type, index: nil, **) [:precision] ||= nil super end |
#column(name, type, index: nil, **options) ⇒ Object
205 206 207 208 |
# File 'lib/active_record/migration/compatibility.rb', line 205 def column(name, type, index: nil, **) [:precision] ||= nil super end |
#new_column_definition(name, type, **options) ⇒ Object
195 196 197 198 |
# File 'lib/active_record/migration/compatibility.rb', line 195 def new_column_definition(name, type, **) type = PostgreSQLCompat.(type, @conn) super end |