Skip to content

Instantly share code, notes, and snippets.

@gotar
Forked from hakanensari/1_create_products.rb
Last active August 29, 2015 14:16
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 gotar/e2f4c83615de05ce50f7 to your computer and use it in GitHub Desktop.
Save gotar/e2f4c83615de05ce50f7 to your computer and use it in GitHub Desktop.
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