このコミットが含まれているのは:
2026-03-27 00:32:28 +09:00
コミット e8be071064
6個のファイルの変更8行の追加7行の削除
+2 -1
ファイルの表示
@@ -1,6 +1,6 @@
class CreateWikiAssets < ActiveRecord::Migration[8.0]
def change
create_table :wiki_assets, primary_key: [:wiki_page_id, :no] do |t|
create_table :wiki_assets do |t|
t.references :wiki_page, null: false, foreign_key: true, index: false
t.integer :no, null: false
t.string :alt_text
@@ -10,6 +10,7 @@ class CreateWikiAssets < ActiveRecord::Migration[8.0]
end
add_index :wiki_assets, [:wiki_page_id, :sha256], unique: true
add_index :wiki_assets, [:wiki_page_id, :no], unique: true
add_column :wiki_pages, :next_asset_no, :integer, null: false, default: 1
end