class method
self.new
Ruby on Rails 8.0.4
Since v2.2.3Signature
self.new( conn, name, temporary: false, if_not_exists: false, options: nil, as: nil, comment: nil, ** )
No documentation comment.
Parameters
-
connreq -
namereq -
temporarykey = false -
if_not_existskey = false -
optionskey = nil -
askey = nil -
commentkey = nil -
kwargskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 371
def initialize(
conn,
name,
temporary: false,
if_not_exists: false,
options: nil,
as: nil,
comment: nil,
**
)
@conn = conn
@columns_hash = {}
@indexes = []
@foreign_keys = []
@primary_keys = nil
@check_constraints = []
@temporary = temporary
@if_not_exists = if_not_exists
@options = options
@as = as
@name = name
@comment = comment
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 371
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::TableDefinition