Revert "Export de tous les dossier d'une démarche"
This commit is contained in:
parent
4f79c0315d
commit
d9a588b52e
32 changed files with 36 additions and 675 deletions
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||
class RenameContentTypeToToTimeSpanTypeForArchives < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
rename_column :archives, :content_type, :time_span_type
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue