Create AdminNotification database table
This commit is contained in:
14
db/migrate/20180221002503_create_admin_notifications.rb
Normal file
14
db/migrate/20180221002503_create_admin_notifications.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateAdminNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :admin_notifications do |t|
|
||||
t.string :title
|
||||
t.text :body
|
||||
t.string :link
|
||||
t.string :segment_recipient
|
||||
t.integer :recipients_count
|
||||
t.date :sent_at, default: nil
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/schema.rb
11
db/schema.rb
@@ -30,6 +30,17 @@ ActiveRecord::Schema.define(version: 20180711224810) do
|
||||
add_index "activities", ["actionable_id", "actionable_type"], name: "index_activities_on_actionable_id_and_actionable_type", using: :btree
|
||||
add_index "activities", ["user_id"], name: "index_activities_on_user_id", using: :btree
|
||||
|
||||
create_table "admin_notifications", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.text "body"
|
||||
t.string "link"
|
||||
t.string "segment_recipient"
|
||||
t.integer "recipients_count"
|
||||
t.date "sent_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "administrators", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user