Add migrations to add user roles and party visibility.
This commit is contained in:
parent
ac7f5ab80a
commit
d7c966e874
2 changed files with 10 additions and 0 deletions
5
db/migrate/20230824222028_add_role_to_users.rb
Normal file
5
db/migrate/20230824222028_add_role_to_users.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddRoleToUsers < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :users, :role, :integer, default: 1, null: false
|
||||
end
|
||||
end
|
||||
5
db/migrate/20230824222107_add_visibility_to_parties.rb
Normal file
5
db/migrate/20230824222107_add_visibility_to_parties.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddVisibilityToParties < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :parties, :visibility, :integer, default: 1, null: false
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue