* Add: #406 ユーザーのカスタムCSS * Fix lint * Fix lint * カスタムCSSの保存先を変更 * キャッシュを考慮して別URLに変更
This commit is contained in:
parent
5ffd7593f1
commit
665c632d66
28 changed files with 283 additions and 4 deletions
12
db/migrate/20240828123604_create_custom_csses.rb
Normal file
12
db/migrate/20240828123604_create_custom_csses.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateCustomCsses < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :custom_csses do |t|
|
||||
t.belongs_to :user, foreign_key: { on_delete: :cascade }, null: false
|
||||
t.string :css, null: false, default: ''
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue