Skip to content

Cannot use the ksuid or ksuid_binary field types when adding a column #48

@michaelherold

Description

@michaelherold

So I just started an empty rails project this morning and tested it all out. Here's the steps to reproduce all errors.

  1. rails new project with ruby 3.2.0 and rails 7.0.8.
  2. Add to Gemfile: (also tried w/out 'ksuid' same error)
gem 'ksuid'
gem 'activerecord-ksuid', require: 'active_record/ksuid/railtie'
  1. Run rails generate model Event my_field_name:ksuid => creates error.
  2. Create a migration file and use add_column => creates error.
  3. Create a migration file and use create_table => does not create error and works as expected.

Originally posted by @DataDaoDe in #21 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions