Add server rules (#15769)
This commit is contained in:
parent
dcc7c686f3
commit
8331fdf7e0
21 changed files with 258 additions and 2 deletions
11
db/migrate/20210221045109_create_rules.rb
Normal file
11
db/migrate/20210221045109_create_rules.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateRules < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :rules do |t|
|
||||
t.integer :priority, null: false, default: 0
|
||||
t.datetime :deleted_at
|
||||
t.text :text, null: false, default: ''
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
10
db/schema.rb
10
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_12_18_054746) do
|
||||
ActiveRecord::Schema.define(version: 2021_02_21_045109) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -723,6 +723,14 @@ ActiveRecord::Schema.define(version: 2020_12_18_054746) do
|
|||
t.index ["target_account_id"], name: "index_reports_on_target_account_id"
|
||||
end
|
||||
|
||||
create_table "rules", force: :cascade do |t|
|
||||
t.integer "priority", default: 0, null: false
|
||||
t.datetime "deleted_at"
|
||||
t.text "text", default: "", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "scheduled_statuses", force: :cascade do |t|
|
||||
t.bigint "account_id"
|
||||
t.datetime "scheduled_at"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue