Module: ActiveRecord::Migration::Compatibility::V6_0::SQLite3::TableDefinition
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #column(name, type, index: nil, **options) ⇒ Object
- #references(*args, **options) ⇒ Object (also: #belongs_to)
Instance Method Details
#column(name, type, index: nil, **options) ⇒ Object
104 105 106 107 |
# File 'lib/active_record/migration/compatibility.rb', line 104 def column(name, type, index: nil, **) [:precision] ||= nil super end |
#references(*args, **options) ⇒ Object Also known as: belongs_to
97 98 99 100 101 |
# File 'lib/active_record/migration/compatibility.rb', line 97 def references(*args, **) args.each do |ref_name| ReferenceDefinition.new(ref_name, type: :integer, **).add_to(self) end end |