diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:30:29 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:30:29 -0600 |
commit | cd750cf9d6eb9fadbcb8994d689980bf9c2bc241 (patch) | |
tree | 08633c43aedc2e90e00d45befc4147cc8911f06b /db | |
parent | bfeb3c5a9539a368f71056913f5654f6d88626cf (diff) |
Añade rol a usuario
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20230222010138_create_user_accounts.rb | 3 | ||||
-rw-r--r-- | db/migrate/20230222012901_add_role_to_user_account.rb | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20230222010138_create_user_accounts.rb b/db/migrate/20230222010138_create_user_accounts.rb index 0219276..e9e0036 100644 --- a/db/migrate/20230222010138_create_user_accounts.rb +++ b/db/migrate/20230222010138_create_user_accounts.rb @@ -1,3 +1,6 @@ +# frozen_string_literal: true + +# CreateUserAccount migration. class CreateUserAccounts < ActiveRecord::Migration[7.0] def change create_table :user_accounts do |t| diff --git a/db/migrate/20230222012901_add_role_to_user_account.rb b/db/migrate/20230222012901_add_role_to_user_account.rb new file mode 100644 index 0000000..9e234a5 --- /dev/null +++ b/db/migrate/20230222012901_add_role_to_user_account.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +# Add the role column to the user account table. +class AddRoleToUserAccount < ActiveRecord::Migration[7.0] + def change + add_column :user_accounts, :role, :string + end +end |