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
|
15
db/schema.rb
15
db/schema.rb
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue