Module: ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- lib/active_record/connection_adapters/postgresql/schema_definitions.rb
Instance Method Summary collapse
- #bit(name, options = {}) ⇒ Object
- #bit_varying(name, options = {}) ⇒ Object
- #cidr(name, options = {}) ⇒ Object
- #citext(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
- #jsonb(name, options = {}) ⇒ Object
- #ltree(name, options = {}) ⇒ Object
- #macaddr(name, options = {}) ⇒ Object
- #money(name, options = {}) ⇒ Object
- #numrange(name, options = {}) ⇒ Object
- #point(name, options = {}) ⇒ Object
- #tsrange(name, options = {}) ⇒ Object
- #tstzrange(name, options = {}) ⇒ Object
- #tsvector(*args) ⇒ Object
- #uuid(name, options = {}) ⇒ Object
- #xml(*args) ⇒ Object
Instance Method Details
#bit(name, options = {}) ⇒ Object
79 80 81 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 79 def bit(name, = {}) column(name, :bit, ) end |
#bit_varying(name, options = {}) ⇒ Object
83 84 85 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 83 def (name, = {}) column(name, :bit_varying, ) end |
#cidr(name, options = {}) ⇒ Object
51 52 53 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 51 def cidr(name, = {}) column(name, :cidr, ) end |
#citext(name, options = {}) ⇒ Object
71 72 73 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 71 def citext(name, = {}) column(name, :citext, ) end |
#daterange(name, options = {}) ⇒ Object
35 36 37 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 35 def daterange(name, = {}) column(name, :daterange, ) end |
#hstore(name, options = {}) ⇒ Object
39 40 41 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 39 def hstore(name, = {}) column(name, :hstore, ) end |
#inet(name, options = {}) ⇒ Object
47 48 49 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 47 def inet(name, = {}) column(name, :inet, ) end |
#int4range(name, options = {}) ⇒ Object
15 16 17 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 15 def int4range(name, = {}) column(name, :int4range, ) end |
#int8range(name, options = {}) ⇒ Object
19 20 21 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 19 def int8range(name, = {}) column(name, :int8range, ) end |
#json(name, options = {}) ⇒ Object
63 64 65 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 63 def json(name, = {}) column(name, :json, ) end |
#jsonb(name, options = {}) ⇒ Object
67 68 69 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 67 def jsonb(name, = {}) column(name, :jsonb, ) end |
#ltree(name, options = {}) ⇒ Object
43 44 45 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 43 def ltree(name, = {}) column(name, :ltree, ) end |
#macaddr(name, options = {}) ⇒ Object
55 56 57 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 55 def macaddr(name, = {}) column(name, :macaddr, ) end |
#money(name, options = {}) ⇒ Object
87 88 89 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 87 def money(name, = {}) column(name, :money, ) end |
#numrange(name, options = {}) ⇒ Object
31 32 33 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 31 def numrange(name, = {}) column(name, :numrange, ) end |
#point(name, options = {}) ⇒ Object
75 76 77 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 75 def point(name, = {}) column(name, :point, ) end |
#tsrange(name, options = {}) ⇒ Object
23 24 25 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 23 def tsrange(name, = {}) column(name, :tsrange, ) end |
#tstzrange(name, options = {}) ⇒ Object
27 28 29 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 27 def tstzrange(name, = {}) column(name, :tstzrange, ) end |
#tsvector(*args) ⇒ Object
10 11 12 13 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 10 def tsvector(*args) = args. column(args[0], :tsvector, ) end |
#uuid(name, options = {}) ⇒ Object
59 60 61 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 59 def uuid(name, = {}) column(name, :uuid, ) end |
#xml(*args) ⇒ Object
5 6 7 8 |
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 5 def xml(*args) = args. column(args[0], :xml, ) end |