Add Export Model

This commit is contained in:
simon lehericey 2019-12-03 18:36:50 +01:00
parent d0f0533a32
commit d0939ae1a4
9 changed files with 206 additions and 1 deletions

View file

@ -0,0 +1,9 @@
class CreateExports < ActiveRecord::Migration[5.2]
def change
create_table :exports do |t|
t.string :format, null: false
t.timestamps
end
end
end

View file

@ -0,0 +1,8 @@
class CreateExportGroupeInstructeurJoinTable < ActiveRecord::Migration[5.2]
create_table "exports_groupe_instructeurs", force: :cascade do |t|
t.bigint "export_id", null: false
t.bigint "groupe_instructeur_id", null: false
t.timestamps
end
end