add dates to members

This commit is contained in:
2023-01-12 14:56:50 +02:00
parent 3f53b6b21b
commit a2215359dc
8 changed files with 26 additions and 7 deletions

View File

@ -0,0 +1,6 @@
class AddArrivedToMemberss < ActiveRecord::Migration[7.0]
def change
add_column :members, :arrived, :date
add_column :members, :left, :date
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_11_164425) do
ActiveRecord::Schema[7.0].define(version: 2023_01_12_123705) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -42,6 +42,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_11_164425) do
t.datetime "confirmed_at"
t.datetime "confirmation_sent_at"
t.string "unconfirmed_email"
t.date "arrived"
t.date "left"
t.index ["email"], name: "index_members_on_email", unique: true
t.index ["reset_password_token"], name: "index_members_on_reset_password_token", unique: true
end