Skip to content

Commit a41ad16

Browse files
committed
remove active admin comments migration
1 parent daf6abe commit a41ad16

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class RemoveActiveAdminComments < ActiveRecord::Migration[7.2]
2+
def change
3+
drop_table :active_admin_comments do |t|
4+
t.string :namespace
5+
t.text :body
6+
t.string :resource_id
7+
t.string :resource_type
8+
t.integer :author_id
9+
t.string :author_type
10+
11+
t.timestamps
12+
13+
t.index [:namespace], name: "index_active_admin_comments_on_namespace"
14+
t.index [:author_type, :author_id], name: "index_active_admin_comments_on_author_type_and_author_id"
15+
t.index [:resource_type, :resource_id], name: "index_active_admin_comments_on_resource_type_and_resource_id"
16+
end
17+
end
18+
end

db/schema.rb

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.1].define(version: 2024_10_09_073948) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_05_20_070911) do
1414
create_schema "tiger"
1515
create_schema "tiger_data"
1616
create_schema "topology"
@@ -44,20 +44,6 @@
4444
t.index ["locale"], name: "index_about_page_entry_translations_on_locale"
4545
end
4646

47-
create_table "active_admin_comments", id: :serial, force: :cascade do |t|
48-
t.string "namespace"
49-
t.text "body"
50-
t.string "resource_type"
51-
t.integer "resource_id"
52-
t.string "author_type"
53-
t.integer "author_id"
54-
t.datetime "created_at", precision: nil, null: false
55-
t.datetime "updated_at", precision: nil, null: false
56-
t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
57-
t.index ["namespace"], name: "index_active_admin_comments_on_namespace"
58-
t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
59-
end
60-
6147
create_table "annex_documents", id: :serial, force: :cascade do |t|
6248
t.string "documentable_type", null: false
6349
t.integer "documentable_id", null: false
@@ -256,7 +242,7 @@
256242
t.boolean "certification_fsc_cw", default: false, null: false
257243
t.boolean "certification_tlv", default: false, null: false
258244
t.integer "forest_type", default: 0, null: false
259-
t.geometry "geometry", limit: {:srid=>0, :type=>"geometry"}
245+
t.geometry "geometry", limit: {srid: 0, type: "geometry"}
260246
t.datetime "deleted_at", precision: nil
261247
t.boolean "certification_ls", default: false, null: false
262248
t.string "name", null: false
@@ -806,8 +792,8 @@
806792
t.string "name", null: false
807793
t.string "wdpa_pid", null: false
808794
t.jsonb "geojson", null: false
809-
t.geometry "geometry", limit: {:srid=>0, :type=>"geometry"}
810-
t.virtual "centroid", type: :geometry, limit: {:srid=>0, :type=>"st_point"}, as: "st_centroid(geometry)", stored: true
795+
t.geometry "geometry", limit: {srid: 0, type: "geometry"}
796+
t.virtual "centroid", type: :geometry, limit: {srid: 0, type: "st_point"}, as: "st_centroid(geometry)", stored: true
811797
t.datetime "created_at", null: false
812798
t.datetime "updated_at", null: false
813799
t.index ["country_id"], name: "index_protected_areas_on_country_id"

0 commit comments

Comments
 (0)