Skip to content

Instantly share code, notes, and snippets.

@hirokazumiyaji
Created August 30, 2016 02:54
Show Gist options
  • Save hirokazumiyaji/6f10e719c449d564740f12eed267266e to your computer and use it in GitHub Desktop.
Save hirokazumiyaji/6f10e719c449d564740f12eed267266e to your computer and use it in GitHub Desktop.
create_table "users", id: false, force: :cascade do |t|
t.integer "id", limit: 4, null: false
t.string "name", limit: 10, null: false
end
execute "ALTER TABLE users ADD PRIMARY KEY (id)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment