demarches-normaliennes/db/migrate/20220911134914_create_zone_labels.rb
2024-08-22 09:26:48 +02:00

13 lines
305 B
Ruby

# frozen_string_literal: true
class CreateZoneLabels < ActiveRecord::Migration[6.1]
def change
create_table :zone_labels do |t|
t.belongs_to :zone, null: false, foreign_key: true
t.date :designated_on, null: false
t.string :name, null: false
t.timestamps
end
end
end