[deploy] Refactor:Drop Blocks Table (#9373)

This commit is contained in:
Molly Struve 2020-07-17 16:29:05 -05:00 committed by GitHub
parent 62d43a1ce7
commit 129b60772c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 22 deletions

View file

@ -0,0 +1,22 @@
class RemoveBlocksTable < ActiveRecord::Migration[6.0]
def change
drop_table :blocks do |t|
t.integer :user_id
t.text :input_html
t.text :processed_html
t.text :published_html
t.text :input_css
t.text :processed_css
t.text :published_css
t.text :input_javascript
t.text :processed_javascript
t.text :published_javascript
t.string :title
t.text :body_markdown
t.text :body_html
t.boolean :featured
t.integer :featured_number
t.timestamps null: false
end
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_07_16_125857) do
ActiveRecord::Schema.define(version: 2020_07_17_203432) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -273,27 +273,6 @@ ActiveRecord::Schema.define(version: 2020_07_16_125857) do
t.index ["creator_id"], name: "index_blazer_queries_on_creator_id"
end
create_table "blocks", id: :serial, force: :cascade do |t|
t.text "body_html"
t.text "body_markdown"
t.datetime "created_at", null: false
t.boolean "featured"
t.integer "featured_number"
t.integer "index_position"
t.text "input_css"
t.text "input_html"
t.text "input_javascript"
t.text "processed_css"
t.text "processed_html"
t.text "processed_javascript"
t.text "published_css"
t.text "published_html"
t.text "published_javascript"
t.string "title"
t.datetime "updated_at", null: false
t.integer "user_id"
end
create_table "broadcasts", id: :serial, force: :cascade do |t|
t.boolean "active", default: false
t.datetime "active_status_updated_at"