So I just started an empty rails project this morning and tested it all out. Here's the steps to reproduce all errors.
- rails new project with ruby 3.2.0 and rails 7.0.8.
- Add to Gemfile: (also tried w/out 'ksuid' same error)
gem 'ksuid'
gem 'activerecord-ksuid', require: 'active_record/ksuid/railtie'
- Run
rails generate model Event my_field_name:ksuid => creates error.
- Create a migration file and use
add_column => creates error.
- Create a migration file and use
create_table => does not create error and works as expected.
Originally posted by @DataDaoDe in #21 (comment)