Skip to content

Commit

Permalink
edited migration
Browse files Browse the repository at this point in the history
  • Loading branch information
lodewiges committed Nov 13, 2024
1 parent 6dcd7ad commit 5cc6e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
10 changes: 2 additions & 8 deletions db/migrate/20241113091607_remove_quickpost.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
class RemoveQuickpost < ActiveRecord::Migration[7.0]
def change
def up
drop_table :quickpost_messages
end

def down
raise ActiveRecord::IrreversibleMigration, "This migration cannot be reverted because it destroys data."
end
end
drop_table :quickpost_messages
end

Check failure on line 4 in db/migrate/20241113091607_remove_quickpost.rb

View workflow job for this annotation

GitHub Actions / Lint

[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
end
11 changes: 0 additions & 11 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,17 +475,6 @@
t.index ["form_id"], name: "index_polls_on_form_id"
end

create_table "quickpost_messages", id: :serial, force: :cascade do |t|
t.integer "author_id"
t.text "message"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.datetime "deleted_at", precision: nil
t.datetime "datetime", precision: nil
t.index ["datetime"], name: "index_quickpost_messages_on_datetime"
t.index ["deleted_at"], name: "index_quickpost_messages_on_deleted_at"
end

create_table "room_adverts", force: :cascade do |t|
t.string "house_name", null: false
t.string "contact", null: false
Expand Down

0 comments on commit 5cc6e50

Please sign in to comment.