dawarich/db/migrate/20240315215423_create_imports.rb

14 lines
307 B
Ruby
Raw Permalink Normal View History

2024-03-15 18:27:31 -04:00
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