Skip to content

Commit

Permalink
Adding references to Bytes columns. Fixes #1079 (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Nov 15, 2022
1 parent a0c9b02 commit 94203a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/actions/guides/database/migrations.cr
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class Guides::Database::Migrations < GuideAction
* `Bool` - Maps to postgres `boolean`.
* `Float64` - Maps to postgres `decimal`. With options for precision and scale.
* `UUID` - Maps to postgres `uuid`.
* `Bytes` - Maps to postgres `bytea`.
* `JSON::Any` - Maps to postgres `jsonb`.
* `Array(T)` - Maps to postgres array fields where `T` is any of the other datatypes.
Expand Down
1 change: 1 addition & 0 deletions src/actions/guides/database/models.cr
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class Guides::Database::Models < GuideAction
* `Bool` - `boolean` column type.
* `Time` - `timestamp with time zone` (`timestamptz`) column type.
* `UUID` - `uuid` column type.
* `Bytes` - `bytea` column type.
* `JSON::Any` - `jsonb` column type.
* `JSON::Serializable` - `jsonb` column type.
* `Array(T)` - `[]` column type where `T` is any other supported type.
Expand Down

0 comments on commit 94203a4

Please sign in to comment.