adds emailed_at attribute to notifications

This commit is contained in:
rgarcia
2016-08-03 19:33:23 +02:00
parent 9d9bf488fc
commit 6281af2a7d
2 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
class AddEmailedAtToNotifications < ActiveRecord::Migration
def change
add_column :notifications, :emailed_at, :datetime
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160617172616) do
ActiveRecord::Schema.define(version: 20160803154011) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -251,10 +251,11 @@ ActiveRecord::Schema.define(version: 20160617172616) do
add_index "moderators", ["user_id"], name: "index_moderators_on_user_id", using: :btree
create_table "notifications", force: :cascade do |t|
t.integer "user_id"
t.integer "notifiable_id"
t.string "notifiable_type"
t.integer "counter", default: 1
t.integer "user_id"
t.integer "notifiable_id"
t.string "notifiable_type"
t.integer "counter", default: 1
t.datetime "emailed_at"
end
add_index "notifications", ["user_id"], name: "index_notifications_on_user_id", using: :btree