Skip to content

Instantly share code, notes, and snippets.

@anadimisra
Created July 18, 2017 06:26
Show Gist options
  • Save anadimisra/db48faf4dd5f0f60a450f347263b0ddf to your computer and use it in GitHub Desktop.
Save anadimisra/db48faf4dd5f0f60a450f347263b0ddf to your computer and use it in GitHub Desktop.
sample gist for how to use erb to define postgres daterange and tsrange in a yml
one:
name: Wrong Name
city: This City
venue: MyString
dates: '(''<%= Date.today %>'' , ''<%= Date.today+2.days %>'')'
schedule: '(''<%= Time.now %>'' , ''<%= Time.now+480.minutes %>'')'
seats: 1
unit_price: 9.99
venue_map_link: MyString
description: MyText
terms: MyText
seo_meta_keywords: ['keyword']
seo_meta_description: ['description']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment