mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
14 lines
307 B
Ruby
14 lines
307 B
Ruby
|
|
class CreateImports < ActiveRecord::Migration[7.1]
|
||
|
|
def change
|
||
|
|
create_table :imports do |t|
|
||
|
|
t.string :name, null: false
|
||
|
|
t.bigint :user_id, null: false
|
||
|
|
t.integer :source, default: 0
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
add_index :imports, :user_id
|
||
|
|
add_index :imports, :source
|
||
|
|
end
|
||
|
|
end
|