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

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_12_09_141641) do
ActiveRecord::Schema.define(version: 2019_12_11_113341) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -317,6 +317,19 @@ ActiveRecord::Schema.define(version: 2019_12_09_141641) do
t.datetime "updated_at"
end
create_table "exports", force: :cascade do |t|
t.string "format", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "exports_groupe_instructeurs", force: :cascade do |t|
t.bigint "export_id", null: false
t.bigint "groupe_instructeur_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "feedbacks", force: :cascade do |t|
t.bigint "user_id"
t.datetime "created_at", null: false