Module: Torque::PostgreSQL::Adapter::ColumnMethods
- Defined in:
- lib/torque/postgresql/adapter/schema_definitions.rb
Instance Method Summary collapse
Instance Method Details
#enum(*args, **options) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 10 def enum(*args, **) args.each do |name| type = .fetch(:subtype, name) column(name, type, ) end end |
#interval(*args, **options) ⇒ Object
6 7 8 |
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 6 def interval(*args, **) args.each { |name| column(name, :interval, ) } end |