Merge pull request #3185 from betagouv/fix-586

Fix #586
This commit is contained in:
gregoirenovel 2018-12-19 14:57:47 +01:00 committed by GitHub
commit 1a41a068ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -669,7 +669,12 @@ Rails/BulkChangeTable:
Enabled: false Enabled: false
Rails/CreateTableWithTimestamps: Rails/CreateTableWithTimestamps:
Enabled: false Enabled: true
Exclude:
- db/migrate/2015*.rb
- db/migrate/2016*.rb
- db/migrate/2017*.rb
- db/migrate/2018*.rb
Rails/Date: Rails/Date:
Enabled: false Enabled: false

View file

@ -0,0 +1,6 @@
class AddMissingTimestamps < ActiveRecord::Migration[5.2]
def change
add_timestamps :administrateurs_gestionnaires, null: true
add_timestamps :geo_areas, null: true
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_12_18_103212) do ActiveRecord::Schema.define(version: 2018_12_18_204707) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -60,6 +60,8 @@ ActiveRecord::Schema.define(version: 2018_12_18_103212) do
create_table "administrateurs_gestionnaires", id: false, force: :cascade do |t| create_table "administrateurs_gestionnaires", id: false, force: :cascade do |t|
t.integer "administrateur_id" t.integer "administrateur_id"
t.integer "gestionnaire_id" t.integer "gestionnaire_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["administrateur_id"], name: "index_administrateurs_gestionnaires_on_administrateur_id" t.index ["administrateur_id"], name: "index_administrateurs_gestionnaires_on_administrateur_id"
t.index ["gestionnaire_id", "administrateur_id"], name: "unique_couple_administrateur_gestionnaire", unique: true t.index ["gestionnaire_id", "administrateur_id"], name: "unique_couple_administrateur_gestionnaire", unique: true
t.index ["gestionnaire_id"], name: "index_administrateurs_gestionnaires_on_gestionnaire_id" t.index ["gestionnaire_id"], name: "index_administrateurs_gestionnaires_on_gestionnaire_id"
@ -344,6 +346,8 @@ ActiveRecord::Schema.define(version: 2018_12_18_103212) do
t.jsonb "properties" t.jsonb "properties"
t.bigint "champ_id" t.bigint "champ_id"
t.string "geo_reference_id" t.string "geo_reference_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["champ_id"], name: "index_geo_areas_on_champ_id" t.index ["champ_id"], name: "index_geo_areas_on_champ_id"
t.index ["source"], name: "index_geo_areas_on_source" t.index ["source"], name: "index_geo_areas_on_source"
end end