nas/db/migrate/20230812083752_create_status_capability_token.rb
2023-08-12 18:22:22 +09:00

12 lines
361 B
Ruby

# frozen_string_literal: true
class CreateStatusCapabilityToken < ActiveRecord::Migration[7.0]
def change
create_table :status_capability_tokens do |t|
t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
t.string :token
t.datetime :created_at, null: false
t.datetime :updated_at, null: false
end
end
end