Skip to content

Commit

Permalink
Fixes deprecation warnings for Crystal 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Dec 27, 2023
1 parent 84deb52 commit 0e3a481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/avram/migrator/alter_table_statement.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Avram::Migrator::AlterTableStatement
name: {{ type_declaration.var.stringify }},
nilable: {{ nilable }},
default: nil,
{{ **type_options }}
{{ type_options.double_splat }}
)
add_change_type_statement %column
end
Expand Down Expand Up @@ -226,7 +226,7 @@ class Avram::Migrator::AlterTableStatement
name: {{ type_declaration.var.stringify }},
nilable: {{ nilable || should_fill_existing }},
default: {{ default }},
{{ **type_options }}
{{ type_options.double_splat }}
)
{% if array %}
.array!
Expand Down
2 changes: 1 addition & 1 deletion src/avram/migrator/create_table_statement.cr
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Avram::Migrator::CreateTableStatement
name: {{ type_declaration.var.stringify }},
nilable: {{ nilable }},
default: {{ default }},
{{ **type_options }}
{{ type_options.double_splat }}
)
{% if array %}
.array!
Expand Down

0 comments on commit 0e3a481

Please sign in to comment.