mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 06:53:58 +08:00
16 lines
357 B
Ruby
16 lines
357 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateThemeSvgSprite < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :theme_svg_sprites do |t|
|
||
|
t.integer :theme_id, null: false
|
||
|
t.integer :upload_id, null: false
|
||
|
t.binary :sprite, null: false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :theme_svg_sprites, :theme_id, unique: true
|
||
|
end
|
||
|
end
|