1 2 3 4 5 6 7 8 9 10 11 12 13
class CreateImports < ActiveRecord::Migration[4.2] 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 :null => false end end end