mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
17 lines
371 B
Ruby
17 lines
371 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class CreateExports < ActiveRecord::Migration[7.1]
|
||
|
|
def change
|
||
|
|
create_table :exports do |t|
|
||
|
|
t.string :name, null: false
|
||
|
|
t.string :url
|
||
|
|
t.integer :status, default: 0, null: false
|
||
|
|
t.bigint :user_id, null: false
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
add_index :exports, :status
|
||
|
|
add_index :exports, :user_id
|
||
|
|
end
|
||
|
|
end
|