Module: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- 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
329 330 331 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 329 def cidr(name, = {}) column(name, 'cidr', ) end |
#daterange(name, options = {}) ⇒ Object
313 314 315 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 313 def daterange(name, = {}) column(name, 'daterange', ) end |
#hstore(name, options = {}) ⇒ Object
317 318 319 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 317 def hstore(name, = {}) column(name, 'hstore', ) end |
#inet(name, options = {}) ⇒ Object
325 326 327 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 325 def inet(name, = {}) column(name, 'inet', ) end |
#int4range(name, options = {}) ⇒ Object
293 294 295 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 293 def int4range(name, = {}) column(name, 'int4range', ) end |
#int8range(name, options = {}) ⇒ Object
297 298 299 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 297 def int8range(name, = {}) column(name, 'int8range', ) end |
#json(name, options = {}) ⇒ Object
341 342 343 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 341 def json(name, = {}) column(name, 'json', ) end |
#ltree(name, options = {}) ⇒ Object
321 322 323 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 321 def ltree(name, = {}) column(name, 'ltree', ) end |
#macaddr(name, options = {}) ⇒ Object
333 334 335 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 333 def macaddr(name, = {}) column(name, 'macaddr', ) end |
#numrange(name, options = {}) ⇒ Object
309 310 311 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 309 def numrange(name, = {}) column(name, 'numrange', ) end |
#tsrange(name, options = {}) ⇒ Object
301 302 303 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 301 def tsrange(name, = {}) column(name, 'tsrange', ) end |
#tstzrange(name, options = {}) ⇒ Object
305 306 307 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 305 def tstzrange(name, = {}) column(name, 'tstzrange', ) end |
#tsvector(*args) ⇒ Object
288 289 290 291 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 288 def tsvector(*args) = args. column(args[0], 'tsvector', ) end |
#uuid(name, options = {}) ⇒ Object
337 338 339 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 337 def uuid(name, = {}) column(name, 'uuid', ) end |
#xml(*args) ⇒ Object
283 284 285 286 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 283 def xml(*args) = args. column(args[0], 'xml', ) end |