summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-01-18 23:08:40 -0700
committermo khan <mo@mokhan.ca>2014-01-18 23:08:40 -0700
commitc47fa949c3da23aff427b6d277d7fd7b561d7f45 (patch)
tree3c357fd1042a882516e9b8f31b72269a7a6be8dd /db
parent4127c89dd5ad46541d8a924042eb4c6b17ae58e8 (diff)
add timestamps to comments table.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140119052825_create_comments.rb1
-rw-r--r--db/schema.rb25
2 files changed, 7 insertions, 19 deletions
diff --git a/db/migrate/20140119052825_create_comments.rb b/db/migrate/20140119052825_create_comments.rb
index 7f58e726..1ec62c56 100644
--- a/db/migrate/20140119052825_create_comments.rb
+++ b/db/migrate/20140119052825_create_comments.rb
@@ -5,6 +5,7 @@ class CreateComments < ActiveRecord::Migration
t.integer :creation_id
t.string :text
t.integer :disqus_id
+ t.timestamps
end
add_index :comments, :user_id
diff --git a/db/schema.rb b/db/schema.rb
index f49cc008..b1882862 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -16,21 +16,6 @@ ActiveRecord::Schema.define(version: 20140119052825) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
- create_table "active_admin_comments", force: true do |t|
- t.integer "resource_id", null: false
- t.string "resource_type", null: false
- t.integer "author_id"
- t.string "author_type"
- t.text "body"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "namespace"
- end
-
- add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id", using: :btree
- add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace", using: :btree
- add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id", using: :btree
-
create_table "activities", force: true do |t|
t.integer "subject_id", null: false
t.string "subject_type", null: false
@@ -62,10 +47,12 @@ ActiveRecord::Schema.define(version: 20140119052825) do
end
create_table "comments", force: true do |t|
- t.integer "user_id"
- t.integer "creation_id"
- t.string "text"
- t.integer "disqus_id"
+ t.integer "user_id"
+ t.integer "creation_id"
+ t.string "text"
+ t.integer "disqus_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
add_index "comments", ["creation_id"], name: "index_comments_on_creation_id", using: :btree