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

Included in:
Table, TableDefinition
Defined in:
lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Instance Method Summary collapse

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, options = {})
  column(name, :bit, options)
end

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



83
84
85
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 83

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

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



51
52
53
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 51

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

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



71
72
73
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 71

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

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



35
36
37
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 35

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

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



39
40
41
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 39

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

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



47
48
49
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 47

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

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



15
16
17
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 15

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

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



19
20
21
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 19

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

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



63
64
65
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 63

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

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



67
68
69
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 67

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

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



43
44
45
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 43

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

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



55
56
57
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 55

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

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



87
88
89
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 87

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

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



31
32
33
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 31

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

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



75
76
77
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 75

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

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



23
24
25
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 23

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

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



27
28
29
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 27

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

#tsvector(*args) ⇒ Object



10
11
12
13
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 10

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

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



59
60
61
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 59

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

#xml(*args) ⇒ Object



5
6
7
8
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 5

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