Module: Activerecord::Multirange::TableDefinition
- Defined in:
- lib/activerecord-multirange/table_definition.rb
Instance Method Summary collapse
- #datemultirange(*args, **options) ⇒ Object
- #int4multirange(*args, **options) ⇒ Object
- #int8multirange(*args, **options) ⇒ Object
- #nummultirange(*args, **options) ⇒ Object
- #tsmultirange(*args, **options) ⇒ Object
- #tstzmultirange(*args, **options) ⇒ Object
Instance Method Details
#datemultirange(*args, **options) ⇒ Object
18 19 20 21 22 |
# File 'lib/activerecord-multirange/table_definition.rb', line 18 def datemultirange(*args, **) args.each do |name| column(name, :datemultirange, **) end end |
#int4multirange(*args, **options) ⇒ Object
36 37 38 39 40 |
# File 'lib/activerecord-multirange/table_definition.rb', line 36 def int4multirange(*args, **) args.each do |name| column(name, :int4multirange, **) end end |
#int8multirange(*args, **options) ⇒ Object
30 31 32 33 34 |
# File 'lib/activerecord-multirange/table_definition.rb', line 30 def int8multirange(*args, **) args.each do |name| column(name, :int8multirange, **) end end |
#nummultirange(*args, **options) ⇒ Object
24 25 26 27 28 |
# File 'lib/activerecord-multirange/table_definition.rb', line 24 def nummultirange(*args, **) args.each do |name| column(name, :nummultirange, **) end end |
#tsmultirange(*args, **options) ⇒ Object
6 7 8 9 10 |
# File 'lib/activerecord-multirange/table_definition.rb', line 6 def tsmultirange(*args, **) args.each do |name| column(name, :tsmultirange, **) end end |
#tstzmultirange(*args, **options) ⇒ Object
12 13 14 15 16 |
# File 'lib/activerecord-multirange/table_definition.rb', line 12 def tstzmultirange(*args, **) args.each do |name| column(name, :tstzmultirange, **) end end |