Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created September 20, 2018 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelseatroy/340569acd36be1a7d4366537030abf51 to your computer and use it in GitHub Desktop.
Save chelseatroy/340569acd36be1a7d4366537030abf51 to your computer and use it in GitHub Desktop.
Example: Data Import as a Transaction
class Workout
property :description, type: String
property :date, type: DateTime
validates :date, presence: true
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment