Module: Activerecord::Multirange::TableDefinition

Defined in:
lib/activerecord-multirange/table_definition.rb

Instance Method Summary collapse

Instance Method Details

#datemultirange(*args, **options) ⇒ Object



18
19
20
21
22
# File 'lib/activerecord-multirange/table_definition.rb', line 18

def datemultirange(*args, **options)
  args.each do |name|
    column(name, :datemultirange, **options)
  end
end

#int4multirange(*args, **options) ⇒ Object



36
37
38
39
40
# File 'lib/activerecord-multirange/table_definition.rb', line 36

def int4multirange(*args, **options)
  args.each do |name|
    column(name, :int4multirange, **options)
  end
end

#int8multirange(*args, **options) ⇒ Object



30
31
32
33
34
# File 'lib/activerecord-multirange/table_definition.rb', line 30

def int8multirange(*args, **options)
  args.each do |name|
    column(name, :int8multirange, **options)
  end
end

#nummultirange(*args, **options) ⇒ Object



24
25
26
27
28
# File 'lib/activerecord-multirange/table_definition.rb', line 24

def nummultirange(*args, **options)
  args.each do |name|
    column(name, :nummultirange, **options)
  end
end

#tsmultirange(*args, **options) ⇒ Object



6
7
8
9
10
# File 'lib/activerecord-multirange/table_definition.rb', line 6

def tsmultirange(*args, **options)
  args.each do |name|
    column(name, :tsmultirange, **options)
  end
end

#tstzmultirange(*args, **options) ⇒ Object



12
13
14
15
16
# File 'lib/activerecord-multirange/table_definition.rb', line 12

def tstzmultirange(*args, **options)
  args.each do |name|
    column(name, :tstzmultirange, **options)
  end
end