Module: ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods

Included in:
Table, TableDefinition
Defined in:
lib/arjdbc/postgresql/base/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#bit(name, options) ⇒ Object



76
77
78
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 76

def bit(name, options)
  column(name, 'bit', options)
end

#bit_varying(name, options) ⇒ Object



80
81
82
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 80

def bit_varying(name, options)
  column(name, 'bit varying', options)
end

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



56
57
58
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 56

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

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



40
41
42
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 40

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

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



44
45
46
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 44

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

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



52
53
54
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 52

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

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



20
21
22
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 20

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

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



24
25
26
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 24

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

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



68
69
70
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 68

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

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



72
73
74
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 72

def jsonb(name, options = {})
  column(name, :jsonb, options)
end

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



48
49
50
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 48

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

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



60
61
62
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 60

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

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



36
37
38
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 36

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

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



28
29
30
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 28

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

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



32
33
34
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 32

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

#tsvector(*args) ⇒ Object



15
16
17
18
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 15

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

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



64
65
66
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 64

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

#xml(*args) ⇒ Object



10
11
12
13
# File 'lib/arjdbc/postgresql/base/schema_definitions.rb', line 10

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