diff --git a/db/migrate/20230824222028_add_role_to_users.rb b/db/migrate/20230824222028_add_role_to_users.rb new file mode 100644 index 0000000..eeac9ca --- /dev/null +++ b/db/migrate/20230824222028_add_role_to_users.rb @@ -0,0 +1,5 @@ +class AddRoleToUsers < ActiveRecord::Migration[7.0] + def change + add_column :users, :role, :integer, default: 1, null: false + end +end diff --git a/db/migrate/20230824222107_add_visibility_to_parties.rb b/db/migrate/20230824222107_add_visibility_to_parties.rb new file mode 100644 index 0000000..8cf0159 --- /dev/null +++ b/db/migrate/20230824222107_add_visibility_to_parties.rb @@ -0,0 +1,5 @@ +class AddVisibilityToParties < ActiveRecord::Migration[7.0] + def change + add_column :parties, :visibility, :integer, default: 1, null: false + end +end