From 4300d7abf8da51cd032e0a0713586d2d912ac91b Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 26 Sep 2018 17:16:44 +0200 Subject: [PATCH] [fix #2449] Migration: remove administrateur api_token column --- ...0926145604_delete_api_token_column_from_administrateur.rb | 5 +++++ db/schema.rb | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20180926145604_delete_api_token_column_from_administrateur.rb diff --git a/db/migrate/20180926145604_delete_api_token_column_from_administrateur.rb b/db/migrate/20180926145604_delete_api_token_column_from_administrateur.rb new file mode 100644 index 000000000..4d94d165c --- /dev/null +++ b/db/migrate/20180926145604_delete_api_token_column_from_administrateur.rb @@ -0,0 +1,5 @@ +class DeleteAPITokenColumnFromAdministrateur < ActiveRecord::Migration[5.2] + def change + remove_column :administrateurs, :api_token, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index abf94d088..2ba7bc2b8 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: 2018_09_25_084403) do +ActiveRecord::Schema.define(version: 2018_09_26_145604) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -50,7 +50,6 @@ ActiveRecord::Schema.define(version: 2018_09_25_084403) do t.string "last_sign_in_ip" t.datetime "created_at" t.datetime "updated_at" - t.string "api_token" t.boolean "active", default: false t.jsonb "features", default: {}, null: false t.string "encrypted_token"