Delete old attr in database
This commit is contained in:
parent
4d765d3b46
commit
c01132c788
6 changed files with 8 additions and 11 deletions
|
@ -1,6 +1,5 @@
|
|||
%div#first-block
|
||||
%div.infos
|
||||
%div.projet-name #{@facade.dossier.nom_projet.capitalize rescue nil}
|
||||
#dossier_id= t('dynamics.dossiers.numéro') + @facade.dossier.id.to_s
|
||||
|
||||
%div#action-block
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
%div.en-cours
|
||||
%h2 Récapitulatif
|
||||
%div.infos
|
||||
%div #{@facade.dossier.nom_projet}
|
||||
%div= t('dynamics.dossiers.numéro') + @facade.dossier.id.to_s
|
||||
|
||||
%div#action-block
|
||||
|
|
|
@ -26,10 +26,6 @@ fr:
|
|||
mail_contact:
|
||||
blank: 'doit être rempli'
|
||||
invalid: 'est incorrect'
|
||||
nom_projet:
|
||||
blank: 'doit être rempli'
|
||||
description:
|
||||
blank: 'doit être remplie'
|
||||
montant_projet:
|
||||
blank: 'doit être rempli'
|
||||
montant_aide_demande:
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
class DeleteOldAttrInDataBase < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
remove_column :dossiers, :nom_projet
|
||||
remove_column :procedures, :test
|
||||
remove_column :notifications, :multiple
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161221153929) do
|
||||
ActiveRecord::Schema.define(version: 20161227103823) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -118,7 +118,6 @@ ActiveRecord::Schema.define(version: 20161221153929) do
|
|||
|
||||
create_table "dossiers", force: :cascade do |t|
|
||||
t.boolean "autorisation_donnees"
|
||||
t.string "nom_projet"
|
||||
t.integer "procedure_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
@ -252,7 +251,6 @@ ActiveRecord::Schema.define(version: 20161221153929) do
|
|||
create_table "notifications", force: :cascade do |t|
|
||||
t.boolean "already_read", default: false
|
||||
t.string "liste", array: true
|
||||
t.boolean "multiple", default: false
|
||||
t.string "type_notif"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
@ -313,7 +311,6 @@ ActiveRecord::Schema.define(version: 20161221153929) do
|
|||
t.string "lien_demarche"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.boolean "test"
|
||||
t.integer "administrateur_id"
|
||||
t.boolean "archived", default: false
|
||||
t.boolean "euro_flag", default: false
|
||||
|
|
|
@ -5,7 +5,6 @@ describe Dossier do
|
|||
|
||||
describe 'database columns' do
|
||||
it { is_expected.to have_db_column(:autorisation_donnees) }
|
||||
it { is_expected.to have_db_column(:nom_projet) }
|
||||
it { is_expected.to have_db_column(:created_at) }
|
||||
it { is_expected.to have_db_column(:updated_at) }
|
||||
it { is_expected.to have_db_column(:state) }
|
||||
|
|
Loading…
Reference in a new issue