Revert "Export de tous les dossier d'une démarche"

This commit is contained in:
krichtof 2021-04-29 16:07:18 +02:00 committed by GitHub
parent 4f79c0315d
commit d9a588b52e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 36 additions and 675 deletions

View file

@ -1,17 +0,0 @@
class CreateArchiveForGroupeInstructeur < ActiveRecord::Migration[6.0]
def change
create_table :archives do |t|
t.string :status, null: false
t.date :month
t.string :content_type, null: false
t.timestamps
end
create_table "archives_groupe_instructeurs", force: :cascade do |t|
t.belongs_to :archive, foreign_key: true, null: false
t.belongs_to :groupe_instructeur, foreign_key: true, null: false
t.timestamps
end
end
end

View file

@ -1,5 +0,0 @@
class RenameContentTypeToToTimeSpanTypeForArchives < ActiveRecord::Migration[6.1]
def change
rename_column :archives, :content_type, :time_span_type
end
end

View file

@ -1,6 +0,0 @@
class AddKeyToArchives < ActiveRecord::Migration[6.1]
def change
add_column :archives, :key, :text, null: false
add_index :archives, [:key, :time_span_type, :month], unique: true
end
end