method
new
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::IndexDefinition
new( table, name, unique = false, columns = [], lengths: {}, orders: {}, opclasses: {}, where: nil, type: nil, using: nil, include: nil, nulls_not_distinct: nil, comment: nil, valid: true )public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 12
def initialize(
table, name,
unique = false,
columns = [],
lengths: {},
orders: {},
opclasses: {},
where: nil,
type: nil,
using: nil,
include: nil,
nulls_not_distinct: nil,
comment: nil,
valid: true
)
@table = table
@name = name
@unique = unique
@columns = columns
@lengths = concise_options(lengths)
@orders = concise_options(orders)
@opclasses = concise_options(opclasses)
@where = where
@type = type
@using = using
@include = include
@nulls_not_distinct = nulls_not_distinct
@comment = comment
@valid = valid
end