account_activity_times error #146
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not true that tables for all other features are generated (e.g. MFA tables aren't), the install generator creates tables only for features that are enabled by default. Enabling all features would be overwhelming for the user, and wouldn't be a good default, and as a result it doesn't make sense to generate tables for unused features. Your migration code doesn't work because you've copied Sequel migration syntax, which differs greatly from Active Record's. The migration generator will create the table using Active Record syntax: $ rails g rodauth:migration account_expiration
$ rails db:migrate |
Beta Was this translation helpful? Give feedback.
It's not true that tables for all other features are generated (e.g. MFA tables aren't), the install generator creates tables only for features that are enabled by default. Enabling all features would be overwhelming for the user, and wouldn't be a good default, and as a result it doesn't make sense to generate tables for unused features.
Your migration code doesn't work because you've copied Sequel migration syntax, which differs greatly from Active Record's. The migration generator will create the table using Active Record syntax: