add public to users

This commit is contained in:
Christophe Robillard 2026-02-20 10:27:10 +01:00
parent 509b0b332d
commit 858c535c3c
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddPublicToUsers < ActiveRecord::Migration[8.0]
def change
add_column :users, :public, :boolean, default: false
end
end

3
db/schema.rb generated
View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2026_02_11_102848) do
ActiveRecord::Schema[8.0].define(version: 2026_02_19_114040) do
create_table "moods", force: :cascade do |t|
t.string "mode"
t.datetime "recorded_at"
@ -47,6 +47,7 @@ ActiveRecord::Schema[8.0].define(version: 2026_02_11_102848) do
t.datetime "updated_at", null: false
t.datetime "invitation_accepted_at"
t.string "username", null: false
t.boolean "public", default: false
t.index ["email_address"], name: "index_users_on_email_address", unique: true
end