mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
334 B
Ruby
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
|