Skip to content

Commit a5bbdd4

Browse files
committed
fix: project labels table not being created
1 parent 2c8cfb5 commit a5bbdd4

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class CreateProjectLabels < ActiveRecord::Migration[8.0]
2+
# where was ts before?
3+
def change
4+
create_table :project_labels do |t|
5+
t.string :user_id, null: false
6+
t.string :project_key, null: false
7+
t.string :label, null: false
8+
t.timestamps
9+
end
10+
11+
add_index :project_labels, [ :user_id, :project_key ], unique: true
12+
add_index :project_labels, :user_id
13+
end
14+
end

db/schema.rb

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)