Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created April 22, 2015 05:01
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 pencilcheck/3f360878d3aba8805b6d to your computer and use it in GitHub Desktop.
Save pencilcheck/3f360878d3aba8805b6d to your computer and use it in GitHub Desktop.
google = Company.new({
name: 'Google',
url: 'www.google.com',
desc: 'Leading Search Engine',
public_at: 2004
})
store._companies << google
class Company < Volt::Model
validate :name, unique: true
has_many :jobs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment