Skip to content

Instantly share code, notes, and snippets.

@abhishek0
Created August 10, 2013 18:24
Show Gist options
  • Save abhishek0/6201552 to your computer and use it in GitHub Desktop.
Save abhishek0/6201552 to your computer and use it in GitHub Desktop.
class CreateInquiries < ActiveRecord::Migration
def change
create_table :inquiries, id: false do |t|
t.primary_key :id, :uuid, :default => 'uuid_generate_v1()'
t.belongs_to :contact
t.string :inquiry_type
t.hstore :metadata
t.string :locality
t.string :city
t.uuid :added_by
t.boolean :verified
t.boolean :rejected
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment