Module: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Instance Method Summary collapse
- #cidr(name, options = {}) ⇒ Object
- #daterange(name, options = {}) ⇒ Object
- #hstore(name, options = {}) ⇒ Object
- #inet(name, options = {}) ⇒ Object
- #int4range(name, options = {}) ⇒ Object
- #int8range(name, options = {}) ⇒ Object
- #json(name, options = {}) ⇒ Object
- #ltree(name, options = {}) ⇒ Object
- #macaddr(name, options = {}) ⇒ Object
- #numrange(name, options = {}) ⇒ Object
- #tsrange(name, options = {}) ⇒ Object
- #tstzrange(name, options = {}) ⇒ Object
- #tsvector(*args) ⇒ Object
- #uuid(name, options = {}) ⇒ Object
- #xml(*args) ⇒ Object
Instance Method Details
#cidr(name, options = {}) ⇒ Object
341 342 343 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 341 def cidr(name, = {}) column(name, 'cidr', ) end |
#daterange(name, options = {}) ⇒ Object
325 326 327 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 325 def daterange(name, = {}) column(name, 'daterange', ) end |
#hstore(name, options = {}) ⇒ Object
329 330 331 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 329 def hstore(name, = {}) column(name, 'hstore', ) end |
#inet(name, options = {}) ⇒ Object
337 338 339 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 337 def inet(name, = {}) column(name, 'inet', ) end |
#int4range(name, options = {}) ⇒ Object
305 306 307 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 305 def int4range(name, = {}) column(name, 'int4range', ) end |
#int8range(name, options = {}) ⇒ Object
309 310 311 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 309 def int8range(name, = {}) column(name, 'int8range', ) end |
#json(name, options = {}) ⇒ Object
353 354 355 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 353 def json(name, = {}) column(name, 'json', ) end |
#ltree(name, options = {}) ⇒ Object
333 334 335 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 333 def ltree(name, = {}) column(name, 'ltree', ) end |
#macaddr(name, options = {}) ⇒ Object
345 346 347 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 345 def macaddr(name, = {}) column(name, 'macaddr', ) end |
#numrange(name, options = {}) ⇒ Object
321 322 323 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 321 def numrange(name, = {}) column(name, 'numrange', ) end |
#tsrange(name, options = {}) ⇒ Object
313 314 315 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 313 def tsrange(name, = {}) column(name, 'tsrange', ) end |
#tstzrange(name, options = {}) ⇒ Object
317 318 319 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 317 def tstzrange(name, = {}) column(name, 'tstzrange', ) end |
#tsvector(*args) ⇒ Object
300 301 302 303 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 300 def tsvector(*args) = args. column(args[0], 'tsvector', ) end |
#uuid(name, options = {}) ⇒ Object
349 350 351 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 349 def uuid(name, = {}) column(name, 'uuid', ) end |
#xml(*args) ⇒ Object
295 296 297 298 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb', line 295 def xml(*args) = args. column(args[0], 'xml', ) end |