chore: Update schema files (#3438)

- removes the unintended table from schema files
This commit is contained in:
Tejaswini Chile 2021-11-23 16:04:01 +05:30 committed by GitHub
parent e182b59002
commit 9103fbbdde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View file

@ -0,0 +1,13 @@
class RemoveInvalidMigration < ActiveRecord::Migration[6.1]
def change
return unless ActiveRecord::Base.connection.table_exists? 'actions'
drop_table :actions do |t|
t.string :name
t.jsonb :execution_list
t.datetime :created_at
t.datetime :updated_at
t.index ['name'], name: 'index_actions_on_name'
end
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_11_22_061012) do
ActiveRecord::Schema.define(version: 2021_11_22_112607) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@ -63,14 +63,6 @@ ActiveRecord::Schema.define(version: 2021_11_22_061012) do
t.index ["message_id", "message_checksum"], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
end
create_table "actions", force: :cascade do |t|
t.string "name", null: false
t.jsonb "execution_list", default: {}, null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["name"], name: "index_actions_on_name"
end
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false