From 035edd39c422c9434147a1b0ac457cb9383c9b5b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 14 Aug 2015 08:20:32 +0000 Subject: Import issues from CSV file (#950). git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/20150730122707_create_imports.rb | 13 +++++++++++++ db/migrate/20150730122735_create_import_items.rb | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 db/migrate/20150730122707_create_imports.rb create mode 100644 db/migrate/20150730122735_create_import_items.rb (limited to 'db') diff --git a/db/migrate/20150730122707_create_imports.rb b/db/migrate/20150730122707_create_imports.rb new file mode 100644 index 000000000..8b58d06c8 --- /dev/null +++ b/db/migrate/20150730122707_create_imports.rb @@ -0,0 +1,13 @@ +class CreateImports < ActiveRecord::Migration + def change + create_table :imports do |t| + t.string :type + t.integer :user_id, :null => false + t.string :filename + t.text :settings + t.integer :total_items + t.boolean :finished, :null => false, :default => false + t.timestamps + end + end +end diff --git a/db/migrate/20150730122735_create_import_items.rb b/db/migrate/20150730122735_create_import_items.rb new file mode 100644 index 000000000..7e9cfb7d6 --- /dev/null +++ b/db/migrate/20150730122735_create_import_items.rb @@ -0,0 +1,10 @@ +class CreateImportItems < ActiveRecord::Migration + def change + create_table :import_items do |t| + t.integer :import_id, :null => false + t.integer :position, :null => false + t.integer :obj_id + t.text :message + end + end +end -- cgit v1.2.3