improve events

This commit is contained in:
Torsten
2023-06-12 15:47:54 +03:00
parent d2eaacaaad
commit 15ccc5eedb
19 changed files with 100 additions and 49 deletions

View File

@ -0,0 +1,6 @@
class AddInfoToEvents < ActiveRecord::Migration[7.0]
def change
add_column :events, :info, :string
add_column :profiles, :info, :string
end
end

4
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[7.0].define(version: 2023_01_16_120518) do
ActiveRecord::Schema[7.0].define(version: 2023_06_11_105046) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -33,6 +33,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_16_120518) do
t.string "picture", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "info"
t.index ["profile_id"], name: "index_events_on_profile_id"
end
@ -72,6 +73,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_16_120518) do
t.bigint "member_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "info"
t.index ["member_id"], name: "index_profiles_on_member_id"
end