class DeleteFileManagement < ActiveRecord::Migration
  def self.up
		drop_table :web_files
		drop_table :web_directories
		drop_table :mimetypes
  end

  def self.down
    create_table :web_files do |t|
			t.column :name, :string
			t.column :web_directory_id, :integer
			t.column :mimetype_id,:integer
			t.column :created_at, :datetime
			t.column :updated_at, :datetime
			t.column :user_id, :integer
    end
    create_table :web_directories do |t|
			t.column :parent_id, :integer
			t.column :name, :string
			t.column :created_at, :datetime
			t.column :updated_at, :datetime
			t.column :user_id, :integer
    end
    create_table :mimetypes do |t|
			t.column :app_id, :integer
			t.column :extension, :string
    end
  end
end

