Skip to content

Instantly share code, notes, and snippets.

@mikedll
Created June 27, 2023 06:29
Show Gist options
  • Save mikedll/0885f922e6ee865374c20a0b7e160709 to your computer and use it in GitHub Desktop.
Save mikedll/0885f922e6ee865374c20a0b7e160709 to your computer and use it in GitHub Desktop.
    create_table :users do |t|
      t.string  :name
      t.bigint  :remote_id
      t.decimal :salary
      t.text :introduction
      t.timestamps
    end
CREATE TABLE public.users (
    id bigint NOT NULL,
    name character varying,
    remote_id bigint,
    salary numeric,
    introduction text,
    created_at timestamp(6) without time zone NOT NULL,
    updated_at timestamp(6) without time zone NOT NULL
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment