readd migration the official command-line way

This commit is contained in:
kiara 2021-12-19 21:53:14 +00:00
parent de07ea5203
commit 9cdec4fd63
4 changed files with 13 additions and 10 deletions

View File

@ -1,7 +0,0 @@
class AddEmailColumnsToRooms < ActiveRecord::Migration[6.0]
def change
add_column :rooms, :email_subject, :string
add_column :rooms, :email_body, :string
end
end

View File

@ -0,0 +1,5 @@
class AddEmailSubjectToRooms < ActiveRecord::Migration[6.0]
def change
add_column :rooms, :email_subject, :string
end
end

View File

@ -0,0 +1,5 @@
class AddEmailBodyToRooms < ActiveRecord::Migration[6.0]
def change
add_column :rooms, :email_body, :string
end
end

View File

@ -10,17 +10,17 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_07_22_135005) do
ActiveRecord::Schema.define(version: 2021_12_19_214602) do
create_table "rooms", force: :cascade do |t|
t.string "name"
t.string "meeting"
t.string "attendee_pw"
t.string "moderator_pw"
t.string "email_subject"
t.string "email_body"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "email_subject"
t.string "email_body"
t.index ["meeting"], name: "index_rooms_on_meeting", unique: true
end