1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20230116142738_create_statuses.rb

14 lines
334 B
Ruby

# frozen_string_literal: true
# From this migration, we set statuses for projects (new, pending, done...)
class CreateStatuses < ActiveRecord::Migration[5.2]
def change
create_table :statuses do |t|
t.string :name
t.timestamps
end
add_reference :projects, :status, index: true, foreign_key: true
end
end