mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
13 lines
307 B
Ruby
13 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
|