diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-02-22 15:23:46 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-02-22 15:23:46 +0100 |
commit | 679642e26c20bf04ceb1a90349c23eb5950bd029 (patch) | |
tree | bfe48773e2fcf9e0fa3a7753b3d8fa2de7217f52 /db | |
parent | 8792128f38e19b0d7882468a4f1f9362b98793a0 (diff) | |
parent | 2127f40e6bf6deab62f48030263c459d14fed364 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20210221045109_create_rules.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 10 |
2 files changed, 20 insertions, 1 deletions
diff --git a/db/migrate/20210221045109_create_rules.rb b/db/migrate/20210221045109_create_rules.rb new file mode 100644 index 000000000..abe2fd42a --- /dev/null +++ b/db/migrate/20210221045109_create_rules.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index a76e34e95..6f19268e1 100644 --- a/db/schema.rb +++ b/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" |