Skip to content

Commit

Permalink
fix migrations generation order
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Apr 22, 2023
1 parent ccb465b commit 760769e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/generators/authentication/authentication_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def create_configuration_files
end

def create_migrations
migration_template "migrations/create_users_migration.rb", "#{db_migrate_path}/create_users.rb"
migration_template "migrations/create_sessions_migration.rb", "#{db_migrate_path}/create_sessions.rb"
migration_template "migrations/create_password_reset_tokens_migration.rb", "#{db_migrate_path}/create_password_reset_tokens.rb"
migration_template "migrations/create_email_verification_tokens_migration.rb", "#{db_migrate_path}/create_email_verification_tokens.rb"
migration_template "migrations/create_events_migration.rb", "#{db_migrate_path}/create_events.rb" if options.trackable?
migration_template "migrations/create_password_reset_tokens_migration.rb", "#{db_migrate_path}/create_password_reset_tokens.rb"
migration_template "migrations/create_recovery_codes_migration.rb", "#{db_migrate_path}/create_recovery_codes.rb" if two_factor?
migration_template "migrations/create_security_keys_migration.rb", "#{db_migrate_path}/create_security_keys.rb" if webauthn?
migration_template "migrations/create_sessions_migration.rb", "#{db_migrate_path}/create_sessions.rb"
migration_template "migrations/create_sign_in_tokens_migration.rb", "#{db_migrate_path}/create_sign_in_tokens_migration.rb" if passwordless?
migration_template "migrations/create_users_migration.rb", "#{db_migrate_path}/create_users.rb"
end

def create_models
Expand Down

0 comments on commit 760769e

Please sign in to comment.