class ActiveRecord::ConnectionAdapters::SQLite3::TableDefinition

Public Instance Methods

belongs_to(*args, **options)
Alias for: references
change_column(column_name, type, **options) click to toggle source
# File lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 7
def change_column(column_name, type, **options)
  name = column_name.to_s
  @columns_hash[name] = nil
  column(name, type, **options)
end
references(*args, **options) click to toggle source
# File lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 13
def references(*args, **options)
  super(*args, type: :integer, **options)
end
Also aliased as: belongs_to

Private Instance Methods

integer_like_primary_key_type(type, options) click to toggle source
# File lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 19
def integer_like_primary_key_type(type, options)
  :primary_key
end