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

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

Instance Method Summary collapse

Instance Method Details

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


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

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

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


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

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

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


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

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

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


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

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

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


277
278
279
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 277

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

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


281
282
283
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 281

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

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


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

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

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


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

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

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


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

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

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


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

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

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


285
286
287
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 285

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

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


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

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

#tsvector(*args) ⇒ Object


272
273
274
275
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 272

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

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


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

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

#xml(*args) ⇒ Object


267
268
269
270
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 267

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