demarches-normaliennes/db/migrate/20211127133549_create_zones.rb

11 lines
215 B
Ruby
Raw Normal View History

2021-12-01 20:00:29 +01:00
class CreateZones < ActiveRecord::Migration[6.1]
def change
create_table :zones do |t|
t.string :acronym, null: false, index: { unique: true }
2021-12-01 20:00:29 +01:00
t.string :label
t.timestamps
end
end
end