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

14 lines
334 B
Ruby
Raw Normal View History

2023-01-16 17:37:44 +01:00
# 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
2023-01-16 17:37:44 +01:00
t.timestamps
end
add_reference :projects, :status, index: true, foreign_key: true
2023-01-16 17:37:44 +01:00
end
end