adds emailed_at attribute to notifications
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddEmailedAtToNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :notifications, :emailed_at, :datetime
|
||||
end
|
||||
end
|
||||
11
db/schema.rb
11
db/schema.rb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user