mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
13 lines
334 B
Ruby
13 lines
334 B
Ruby
class CreateProjectLabels < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :project_labels do |t|
|
|
t.string :user_id
|
|
t.string :project_key
|
|
t.string :label
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :project_labels, :user_id
|
|
add_index :project_labels, [ :user_id, :project_key ], unique: true
|
|
end
|
|
end
|