2019-09-24 17:42:50 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# From this migration, we save the file imports into the database.
|
|
|
|
# Currently, imports are limited to users import from a CSV file
|
2020-03-24 16:45:27 +01:00
|
|
|
class CreateImports < ActiveRecord::Migration[4.2]
|
2019-09-24 17:42:50 +02:00
|
|
|
def change
|
|
|
|
create_table :imports do |t|
|
2019-09-25 16:37:42 +02:00
|
|
|
t.integer :user_id
|
2019-09-24 17:42:50 +02:00
|
|
|
t.string :attachment
|
2019-09-25 16:37:42 +02:00
|
|
|
t.string :update_field
|
|
|
|
t.string :category
|
|
|
|
t.text :results
|
2019-09-24 17:42:50 +02:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|