Skip to content

Instantly share code, notes, and snippets.

@eduardodeoh
Forked from hakanensari/1_create_products.rb
Last active August 26, 2015 18:04
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 eduardodeoh/2592545cf715f475730a to your computer and use it in GitHub Desktop.
Save eduardodeoh/2592545cf715f475730a to your computer and use it in GitHub Desktop.
Sequel + uuid-ossp
Sequel.migration do
up do
run 'CREATE EXTENSION "uuid-ossp"'
create_table :products do
column :id, :uuid, :default => Sequel.function(:uuid_generate_v4), :primary_key => true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment