demarches-normaliennes/db/migrate/20211127133549_create_zones.rb
krichtof b2902340af add db constraints for ministere
Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
2021-12-02 19:24:26 +01:00

10 lines
215 B
Ruby

class CreateZones < ActiveRecord::Migration[6.1]
def change
create_table :zones do |t|
t.string :acronym, null: false, index: { unique: true }
t.string :label
t.timestamps
end
end
end