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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

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



353
354
355
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 353

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

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



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

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

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



345
346
347
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 345

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

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



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

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

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



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

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

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



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

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

#tsvector(*args) ⇒ Object



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

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

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



349
350
351
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 349

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

#xml(*args) ⇒ Object



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

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