Skip to content

Commit

Permalink
Merge pull request #18 from guilhermedeandrade/chore/fix-schema-typo-…
Browse files Browse the repository at this point in the history
…on-readme

chore: fix schema typo on README
  • Loading branch information
halvardssm authored May 14, 2020
2 parents 43da716 + 419b5b8 commit d6f228b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ Minimal example of a migration file
```ts
import { Schema } from "https://deno.land/x/nessie/mod.ts";

export const up = (scema: Schema): void => {
scema.create("users", (table) => {
export const up = (schema: Schema): void => {
schema.create("users", (table) => {
table.id();
table.string("name", 100).nullable();
table.boolean("is_true").default("false");
table.custom("custom_column int default 1");
table.timestamps();
});

scema.queryString(
schema.queryString(
"INSERT INTO users VALUES (DEFAULT, 'Deno', true, 2, DEFAULT, DEFAULT);",
);
};
Expand Down

0 comments on commit d6f228b

Please sign in to comment.