Module: ActiveRecord::Migration::Compatibility::V5_2::TableDefinition

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#column(name, type, index: nil, **options) ⇒ Object



158
159
160
161
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration/compatibility.rb', line 158

def column(name, type, index: nil, **options)
  options[:precision] ||= nil
  super
end

#timestamps(**options) ⇒ Object



153
154
155
156
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration/compatibility.rb', line 153

def timestamps(**options)
  options[:precision] ||= nil
  super
end