Module: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ColumnMethods

Included in:
Table, TableDefinition
Defined in:
lib/active_record/connection_adapters/postgresql_adapter.rb

Instance Method Summary collapse

Instance Method Details

#cidr(name, options = {}) ⇒ Object



329
330
331
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 329

def cidr(name, options = {})
  column(name, 'cidr', options)
end

#daterange(name, options = {}) ⇒ Object



313
314
315
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 313

def daterange(name, options = {})
  column(name, 'daterange', options)
end

#hstore(name, options = {}) ⇒ Object



317
318
319
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 317

def hstore(name, options = {})
  column(name, 'hstore', options)
end

#inet(name, options = {}) ⇒ Object



325
326
327
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 325

def inet(name, options = {})
  column(name, 'inet', options)
end

#int4range(name, options = {}) ⇒ Object



293
294
295
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 293

def int4range(name, options = {})
  column(name, 'int4range', options)
end

#int8range(name, options = {}) ⇒ Object



297
298
299
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 297

def int8range(name, options = {})
  column(name, 'int8range', options)
end

#json(name, options = {}) ⇒ Object



341
342
343
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 341

def json(name, options = {})
  column(name, 'json', options)
end

#ltree(name, options = {}) ⇒ Object



321
322
323
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 321

def ltree(name, options = {})
  column(name, 'ltree', options)
end

#macaddr(name, options = {}) ⇒ Object



333
334
335
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 333

def macaddr(name, options = {})
  column(name, 'macaddr', options)
end

#numrange(name, options = {}) ⇒ Object



309
310
311
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 309

def numrange(name, options = {})
  column(name, 'numrange', options)
end

#tsrange(name, options = {}) ⇒ Object



301
302
303
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 301

def tsrange(name, options = {})
  column(name, 'tsrange', options)
end

#tstzrange(name, options = {}) ⇒ Object



305
306
307
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 305

def tstzrange(name, options = {})
  column(name, 'tstzrange', options)
end

#tsvector(*args) ⇒ Object



288
289
290
291
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 288

def tsvector(*args)
  options = args.extract_options!
  column(args[0], 'tsvector', options)
end

#uuid(name, options = {}) ⇒ Object



337
338
339
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 337

def uuid(name, options = {})
  column(name, 'uuid', options)
end

#xml(*args) ⇒ Object



283
284
285
286
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 283

def xml(*args)
  options = args.extract_options!
  column(args[0], 'xml', options)
end