Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-02-08 10:53:37 +0300
committerJeff King <peff@peff.net>2018-02-08 11:13:31 +0300
commit0529ef9c9440d7166cef3c61e2dcf661de7bfa3d (patch)
tree8934dac997d9e59dcb309aa0330ed86d444c2faa /db
parent8adc36c43f69b9e05df7d6d4f31c00d16fa4e6b8 (diff)
drop "related items" code
We haven't been populating the database with this for some time (and any residual records have been gone for almost a year due to the database transition). And nobody seems to have noticed. Let's just give up on the feature in the name of simplicity.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120423150252_add_related.rb17
-rw-r--r--db/schema.rb11
2 files changed, 0 insertions, 28 deletions
diff --git a/db/migrate/20120423150252_add_related.rb b/db/migrate/20120423150252_add_related.rb
deleted file mode 100644
index ac8aa1e5..00000000
--- a/db/migrate/20120423150252_add_related.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-class AddRelated < ActiveRecord::Migration
- def up
- create_table :related_items do |t|
- t.string :name
- t.string :content_type
- t.string :content_url
- t.string :related_type
- t.string :related_id
- t.integer :score
- t.timestamps
- end
- end
-
- def down
- drop_table :related_items
- end
-end
diff --git a/db/schema.rb b/db/schema.rb
index 7e198bff..897f7b13 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -81,17 +81,6 @@ ActiveRecord::Schema.define(version: 20141027114732) do
t.datetime "release_date"
end
- create_table "related_items", force: :cascade do |t|
- t.string "name", limit: 255
- t.string "content_type", limit: 255
- t.string "content_url", limit: 255
- t.string "related_type", limit: 255
- t.string "related_id", limit: 255
- t.integer "score"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
create_table "sections", force: :cascade do |t|
t.string "title", limit: 255
t.string "slug", limit: 255