udemy-go-web-2/migrations/20240807135144_create_customer_table.up.fizz
2024-08-07 16:22:52 +02:00

10 lines
353 B
Plaintext

create_table("customers") {
t.Column("id", "integer", {primary: true})
t.Column("first_name", "string", {"size": 255})
t.Column("last_name", "string", {"size": 255})
t.Column("email", "string", {})
}
sql("alter table customers alter column created_at set default now();")
sql("alter table customers alter column updated_at set default now();")