Module: ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- lib/arjdbc/postgresql/base/schema_definitions.rb
Instance Method Summary collapse
- #bit(name, options) ⇒ Object
- #bit_varying(name, options) ⇒ Object
- #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
- #jsonb(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
#bit(name, options) ⇒ Object
76 77 78 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 76 def bit(name, ) column(name, 'bit', ) end |
#bit_varying(name, options) ⇒ Object
80 81 82 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 80 def (name, ) column(name, 'bit varying', ) end |
#cidr(name, options = {}) ⇒ Object
56 57 58 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 56 def cidr(name, = {}) column(name, 'cidr', ) end |
#daterange(name, options = {}) ⇒ Object
40 41 42 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 40 def daterange(name, = {}) column(name, 'daterange', ) end |
#hstore(name, options = {}) ⇒ Object
44 45 46 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 44 def hstore(name, = {}) column(name, 'hstore', ) end |
#inet(name, options = {}) ⇒ Object
52 53 54 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 52 def inet(name, = {}) column(name, 'inet', ) end |
#int4range(name, options = {}) ⇒ Object
20 21 22 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 20 def int4range(name, = {}) column(name, 'int4range', ) end |
#int8range(name, options = {}) ⇒ Object
24 25 26 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 24 def int8range(name, = {}) column(name, 'int8range', ) end |
#json(name, options = {}) ⇒ Object
68 69 70 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 68 def json(name, = {}) column(name, 'json', ) end |
#jsonb(name, options = {}) ⇒ Object
72 73 74 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 72 def jsonb(name, = {}) column(name, :jsonb, ) end |
#ltree(name, options = {}) ⇒ Object
48 49 50 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 48 def ltree(name, = {}) column(name, 'ltree', ) end |
#macaddr(name, options = {}) ⇒ Object
60 61 62 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 60 def macaddr(name, = {}) column(name, 'macaddr', ) end |
#numrange(name, options = {}) ⇒ Object
36 37 38 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 36 def numrange(name, = {}) column(name, 'numrange', ) end |
#tsrange(name, options = {}) ⇒ Object
28 29 30 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 28 def tsrange(name, = {}) column(name, 'tsrange', ) end |
#tstzrange(name, options = {}) ⇒ Object
32 33 34 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 32 def tstzrange(name, = {}) column(name, 'tstzrange', ) end |
#tsvector(*args) ⇒ Object
15 16 17 18 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 15 def tsvector(*args) = args. column(args[0], 'tsvector', ) end |
#uuid(name, options = {}) ⇒ Object
64 65 66 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 64 def uuid(name, = {}) column(name, 'uuid', ) end |
#xml(*args) ⇒ Object
10 11 12 13 |
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 10 def xml(*args) = args. column(args[0], 'xml', ) end |