mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
17 lines
600 B
Ruby
17 lines
600 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateRepositoryStatusItems < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
create_table :repository_status_items do |t|
|
||
|
t.string :status, null: false, index: true
|
||
|
t.string :icon, null: false
|
||
|
t.references :repository, null: false, foreign_key: true
|
||
|
t.references :repository_column, null: false, foreign_key: true
|
||
|
t.references :created_by, index: true, foreign_key: { to_table: :users }, null: true
|
||
|
t.references :last_modified_by, index: true, foreign_key: { to_table: :users }, null: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|