Add Export Model
This commit is contained in:
parent
d0f0533a32
commit
d0939ae1a4
9 changed files with 206 additions and 1 deletions
9
db/migrate/20191211101608_create_exports.rb
Normal file
9
db/migrate/20191211101608_create_exports.rb
Normal 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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue