supprime la colonne email des administrateurs

This commit is contained in:
Christophe Robillard 2020-02-11 17:29:45 +01:00 committed by Christophe Robillard
parent 0a3e0404e7
commit 82af0e4db8
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
class AdministrateursRemoveEmail < ActiveRecord::Migration[5.2]
def change
remove_column :administrateurs, :email
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_02_10_100938) do ActiveRecord::Schema.define(version: 2020_02_11_170134) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -48,12 +48,10 @@ ActiveRecord::Schema.define(version: 2020_02_10_100938) do
end end
create_table "administrateurs", id: :serial, force: :cascade do |t| create_table "administrateurs", id: :serial, force: :cascade do |t|
t.string "email", default: "", null: false
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.boolean "active", default: false t.boolean "active", default: false
t.string "encrypted_token" t.string "encrypted_token"
t.index ["email"], name: "index_administrateurs_on_email"
end end
create_table "administrateurs_instructeurs", id: false, force: :cascade do |t| create_table "administrateurs_instructeurs", id: false, force: :cascade do |t|