class ActiveRecord::ConnectionAdapters::SQLite3::TableDefinition

Active Record SQLite3 Adapter Table Definition

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 8
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 14
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 29
def integer_like_primary_key_type(type, options)
  :primary_key
end
valid_column_definition_options() click to toggle source
# File lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 33
def valid_column_definition_options
  super + [:as, :type, :stored]
end