blob: eb5a6fa5ff978d2bc4f481255deed1109bfa3e27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class CreateCategories < ActiveRecord::Migration[6.0]
def change
create_table :categories do |t|
t.string :name, limit: 64
t.string :summary, limit: 136
t.text :description
t.references :taxonomy, null: false, foreign_key: true
t.string :color, limit: 25
t.integer :rank
t.integer :sections_count, default: 0
t.timestamps
end
end
end
|