You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.1 KiB

class CreateNodes < ActiveRecord::Migration[7.1]
def change
create_table :nodes do |t|
t.integer :position
t.integer "status", default: 0
t.integer "template", default: 0
t.integer "ancestry_depth", default: 0
t.string "ancestry", collation: 'C', null: false
t.jsonb "slug", default: {}
t.jsonb "url", default: {}
t.jsonb "title", default: {}
t.jsonb "page_title", default: {}
t.jsonb "page_description", default: {}
t.jsonb "href", default: {}
t.jsonb "tags", default: {}
t.text "settings", default: [], array: true
t.text "excluded_locales", default: [], array: true
t.boolean "is_allowlist", default: false
t.datetime "published_at"
t.datetime "expires_at"
t.timestamps
t.index "ancestry"
t.index "ancestry_depth"
t.index "position"
t.index "slug", using: :gin
t.index "url", using: :gin
t.index "tags", using: :gin
t.index "settings", using: :gin
t.index "status"
t.index "template"
t.index "excluded_locales", using: :gin
t.index "is_allowlist"
end
end
end