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

13 lines
246 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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