Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Some alter-table methods are unavailable at migration #491

Description

@saiidalhalawi

Hi, I use following versions.

  • hanami (1.1.1)
  • sequel (4.49.0)

The document says set_column_allow_null is available at migration, but I've encountered undefined method error.

Hanami::Model.migration do
  change do
    set_column_allow_null :users, :address
  end
end
undefined method `set_column_allow_null' for #<Sequel::Mysql2::Database:0x00007f0b48099660>
Did you mean?  set_column_default

In addition, some other methods, like set_column_not_null or add_unique_constraint, are same.
It seems to be good the document is fixed, because I think these methods might be dispensable.

Do you think of it?
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions