1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/db/migrate/20190924140726_create_imports.rb

18 lines
438 B
Ruby
Raw Normal View History

# 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
class CreateImports < ActiveRecord::Migration[4.2]
def change
create_table :imports do |t|
2019-09-25 16:37:42 +02:00
t.integer :user_id
t.string :attachment
2019-09-25 16:37:42 +02:00
t.string :update_field
t.string :category
t.text :results
t.timestamps null: false
end
end
end