Method: ActiveRecord::ConnectionAdapters::TableDefinition#initialize
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
#initialize(conn, name, temporary: false, if_not_exists: false, options: nil, as: nil, comment: nil) ⇒ TableDefinition
Returns a new instance of TableDefinition.
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# 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 = @as = as @name = name @comment = comment end |