Skip to content

Commit edff3d8

Browse files
committed
MIGRATION: Create color_scales table
1 parent 4ea7de4 commit edff3d8

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class CreateColorScales < ActiveRecord::Migration[7.1]
2+
def change
3+
create_table :color_scales, force: true, id: false do |t|
4+
t.primary_key :id, :string, default: -> { "ULID()" }
5+
t.string :name, null: false
6+
t.string :weight_50, null: false
7+
t.string :weight_100, null: false
8+
t.string :weight_200, null: false
9+
t.string :weight_300, null: false
10+
t.string :weight_400, null: false
11+
t.string :weight_500, null: false
12+
t.string :weight_600, null: false
13+
t.string :weight_700, null: false
14+
t.string :weight_800, null: false
15+
t.string :weight_900, null: false
16+
t.string :weight_950, null: false
17+
18+
t.timestamps
19+
end
20+
end
21+
end

db/schema.rb

Lines changed: 18 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)